:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #d9f1ff;
  color: #132033;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), transparent 36%),
    linear-gradient(45deg, rgba(22, 163, 74, 0.14), transparent 42%),
    #eaf7ff;
}

button {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.phone-frame {
  position: relative;
  width: min(100%, 430px);
  min-height: min(760px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(180deg, #f8fcff 0%, #eef8ff 58%, #e5fff1 100%);
  box-shadow: 0 24px 70px rgba(30, 64, 175, 0.18);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.start-screen,
.story-screen,
.level-screen,
.result-screen {
  position: relative;
  z-index: 1;
  min-height: min(760px, calc(100vh - 32px));
  padding: 24px;
}

.start-screen,
.story-screen,
.result-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.top-pill,
.question-type {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.hero-robot {
  position: relative;
  width: 152px;
  aspect-ratio: 1;
  margin: 18px auto 4px;
  border: 8px solid #2563eb;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), transparent 40%),
    #bfe8ff;
  box-shadow: inset 0 -14px 0 rgba(22, 163, 74, 0.15), 0 18px 34px rgba(37, 99, 235, 0.2);
}

.hero-robot::before,
.hero-robot::after {
  content: "";
  position: absolute;
  background: #2563eb;
}

.hero-robot::before {
  width: 6px;
  height: 26px;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
}

.hero-robot::after {
  width: 18px;
  height: 18px;
  left: 50%;
  top: -46px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.robot-eye,
.robot-mouth {
  position: absolute;
  background: #132033;
}

.robot-eye {
  top: 48px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.robot-eye.left {
  left: 38px;
}

.robot-eye.right {
  right: 38px;
}

.robot-mouth {
  left: 50%;
  bottom: 38px;
  width: 46px;
  height: 8px;
  border-radius: 999px;
  transform: translateX(-50%);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.12;
  text-align: center;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
}

p {
  line-height: 1.65;
  color: #43536a;
}

.start-screen > p,
.result-screen > p {
  text-align: center;
}

.mission-panel,
.story-card,
.question-card,
.feedback,
.result-panel,
.data-panel {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
}

.mission-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
}

.mission-panel span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.start-login-panel {
  display: grid;
  gap: 14px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field span {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.login-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #132033;
  font: inherit;
  font-weight: 750;
  outline: none;
}

.login-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.login-error {
  padding: 8px 12px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 12px;
  background: rgba(254, 226, 226, 0.86);
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
  text-align: center;
}

.login-credit {
  display: grid;
  gap: 2px;
  padding-top: 4px;
  color: rgba(239, 246, 255, 0.9);
  text-align: center;
}

.login-combined-logo {
  display: block;
  width: min(100%, 340px);
  max-height: 92px;
  margin: 0 auto;
  object-fit: contain;
}

.login-credit p {
  margin: 0;
  color: rgba(239, 246, 255, 0.9);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.login-combined-logo + p {
  margin-top: 6px;
}

.primary-btn,
.ghost-btn,
.option-btn,
.move-item,
.drop-zone {
  min-height: 48px;
  border: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-btn {
  width: 100%;
  border-radius: 16px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.26);
}

.ghost-btn {
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #1d4ed8;
  font-weight: 800;
}

.primary-btn:active,
.ghost-btn:active,
.option-btn:active,
.move-item:active,
.drop-zone:active {
  transform: scale(0.98);
}

.page-header {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.page-header span {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.page-header strong {
  font-size: 18px;
  line-height: 1.32;
}

.story-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 18px;
}

.character-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
}

.dialog-lines {
  display: grid;
  gap: 12px;
}

.level-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.level-screen.has-level-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(247, 252, 255, 0.74), rgba(236, 251, 244, 0.88)),
    var(--level-bg) center top / cover no-repeat;
  opacity: 0.38;
}

.level-screen.has-level-bg .question-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

.progress-track,
.mini-track {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
}

.progress-track {
  height: 10px;
}

.progress-track span,
.mini-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #16a34a;
}

.test-timer {
  position: absolute;
  top: auto;
  bottom: 16px;
  right: 16px;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 118px;
  padding: 9px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #172554;
  text-align: center;
  box-shadow: 0 14px 28px rgba(30, 64, 175, 0.14);
  backdrop-filter: blur(8px);
}

.test-timer span {
  color: #607089;
  font-size: 11px;
  font-weight: 900;
}

.test-timer strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.test-timer.urgent {
  border-color: rgba(220, 38, 38, 0.26);
  background: rgba(254, 242, 242, 0.92);
  color: #b91c1c;
}

.question-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.fox-dialog {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.fox-dialog img {
  width: 68px;
  aspect-ratio: 1;
  object-fit: contain;
}

.fox-dialog strong {
  display: block;
  color: #b45309;
  margin-bottom: 4px;
}

.fox-dialog p {
  font-size: 13px;
  line-height: 1.5;
}

.crystal-playground {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 10px;
  align-items: start;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.device-card {
  position: relative;
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 148px;
  padding: 9px;
  border: 2px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #132033;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1);
}

.device-card.has-crystal {
  border-color: rgba(22, 163, 74, 0.72);
  background: #f0fff6;
}

.device-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 78px;
  border-radius: 12px;
  background: #f3f8ff;
}

.device-image-wrap img {
  width: 100%;
  max-width: 76px;
  height: 72px;
  object-fit: contain;
}

.device-card strong {
  min-height: 34px;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1.3;
}

.crystal-mark,
.empty-mark {
  position: absolute;
  right: 5px;
  bottom: 5px;
  border-radius: 999px;
  padding: 3px 6px;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.crystal-mark {
  background: #16a34a;
  color: #fff;
}

.empty-mark {
  background: rgba(96, 112, 137, 0.14);
  color: #607089;
}

.device-tip {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% - 10px);
  z-index: 5;
  display: none;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #304157;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.device-card:hover .device-tip,
.device-card:focus .device-tip,
.device-card:focus-visible .device-tip {
  display: block;
}

.crystal-dock {
  position: sticky;
  top: 12px;
}

.crystal-source {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 100%;
  min-height: 132px;
  padding: 8px;
  border: 2px solid rgba(22, 163, 74, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: #15803d;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.16);
  cursor: grab;
}

.crystal-source.picked {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.crystal-source img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.crystal-source span {
  font-size: 13px;
}

.crystal-source small {
  color: #607089;
  font-size: 10px;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-btn,
.move-item,
.drop-zone {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #fff;
  color: #132033;
  text-align: left;
  font-weight: 750;
}

.option-btn {
  padding: 13px 14px;
}

.option-btn.selected,
.move-item.picked {
  border-color: #2563eb;
  background: #e9f1ff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.14);
}

.drag-board {
  display: grid;
  gap: 12px;
}

.item-bank,
.drop-grid {
  display: grid;
  gap: 10px;
}

.move-item {
  padding: 12px;
}

.move-item.placed {
  color: #607089;
  background: #f8fbff;
}

.drop-zone {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 12px;
  border-style: dashed;
  background: #f8fcff;
}

.drop-zone strong {
  color: #1d4ed8;
}

.drop-zone span {
  color: #5c6b80;
  font-size: 13px;
  line-height: 1.45;
}

.feedback {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.feedback.is-correct {
  border-color: rgba(22, 163, 74, 0.32);
}

.feedback.is-wrong {
  border-color: rgba(245, 158, 11, 0.42);
}

.level-footer {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: auto;
}

.score-orb {
  width: 158px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-self: center;
  border: 10px solid #16a34a;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 34px rgba(22, 163, 74, 0.18);
}

.score-orb span {
  font-size: 46px;
  font-weight: 950;
  color: #15803d;
}

.score-orb small {
  margin-top: -28px;
  color: #607089;
  font-weight: 800;
}

.result-panel,
.data-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.dimension-row span {
  font-weight: 800;
}

.dimension-row strong {
  color: #1d4ed8;
}

.mini-track {
  grid-column: 1 / -1;
  height: 8px;
}

.data-panel span {
  color: #43536a;
}

.report-screen {
  justify-content: start;
  gap: 18px;
}

.report-page-header {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.report-page-header span {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.report-page-header h1 {
  margin: 0;
  color: #172554;
  font-size: 32px;
  text-align: center;
}

.report-preview-wrap {
  display: grid;
  gap: 14px;
}

.report-preview {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 20px;
  background: #160d58;
  box-shadow: 0 18px 40px rgba(30, 64, 175, 0.2);
}

.report-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.report-live-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.report-fill {
  position: absolute;
  display: block;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0.28cqw 0.7cqw rgba(25, 8, 92, 0.42);
}

.grade-fill {
  left: 72.4%;
  top: 29.2%;
  width: 7.6%;
  height: 5.9%;
  color: #ffe66d;
  font-size: 6.7cqw;
}

.completion-fill {
  left: 71.25%;
  top: 42.35%;
  width: 10%;
  height: 3.9%;
  color: #ffe66d;
  font-size: 2.35cqw;
}

.student-name-fill {
  left: 63.4%;
  top: 11.45%;
  width: 25%;
  height: 3.6%;
  color: #ffffff;
  font-size: 1.95cqw;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-result {
  left: 62.88%;
  width: 29.5%;
  height: 3.7%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.6cqw;
  padding-right: 2.2cqw;
  font-size: 2.12cqw;
  white-space: nowrap;
}

.task-result b {
  font-size: 1.95cqw;
}

.task-result span {
  display: inline-flex;
  gap: 0.35cqw;
  font-size: 2.55cqw;
}

.task-result i {
  font-style: normal;
}

.task-result-1 {
  top: 54.44%;
  color: #1f8a3b;
}

.task-result-2 {
  top: 61.90%;
  color: #126bc7;
}

.task-result-3 {
  top: 69.09%;
  color: #723ac7;
}

.task-result-4 {
  top: 76.20%;
  color: #dd5a1f;
}

.highlight-fill,
.comment-fill {
  top: 86.41%;
  height: 6.0%;
  overflow: hidden;
  color: #25388e;
  font-size: 1.36cqw;
  font-weight: 850;
  line-height: 1.18;
  text-align: left;
  text-shadow: none;
}

.highlight-fill {
  left: 21.52%;
  width: 25.52%;
}

.comment-fill {
  left: 53.57%;
  width: 25.63%;
}

.title-fill {
  left: 39.06%;
  top: 97.55%;
  width: 25.51%;
  color: #24307f;
  font-size: 2.4cqw;
}

.report-summary {
  display: grid;
  gap: 14px;
}

.report-summary-header {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.report-summary-header span {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.report-summary-header h1 {
  font-size: 28px;
  text-align: center;
}

.report-summary-header p {
  font-weight: 800;
}

.report-score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.report-score-grid div,
.report-block {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
}

.report-score-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.report-score-grid span {
  color: #607089;
  font-size: 12px;
  font-weight: 800;
}

.report-score-grid strong {
  color: #1d4ed8;
  font-size: 28px;
  line-height: 1;
}

.report-block {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.report-block h2 {
  color: #172554;
  font-size: 18px;
}

.report-task-list {
  display: grid;
  gap: 8px;
}

.report-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 14px;
  background: #f8fcff;
}

.report-task-row div {
  display: grid;
  gap: 3px;
}

.report-task-row span {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.report-task-row strong {
  font-size: 16px;
  line-height: 1.2;
}

.report-task-row small {
  color: #607089;
  font-size: 12px;
  line-height: 1.25;
}

.report-task-row b {
  color: #172554;
  font-size: 15px;
  white-space: nowrap;
}

.report-stars {
  display: flex;
  gap: 2px;
  min-width: 74px;
  color: #f59e0b;
  font-size: 22px;
  line-height: 1;
}

.report-stars i {
  font-style: normal;
}

.report-actions {
  display: flex;
  justify-content: center;
}

.report-actions .primary-btn,
.report-actions .ghost-btn {
  width: min(100%, 260px);
}

@media (max-width: 360px) {
  .start-screen,
  .story-screen,
  .level-screen,
  .result-screen {
    padding: 18px;
  }

  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 20px;
  }

  .mission-panel {
    grid-template-columns: 1fr;
  }

  .crystal-playground {
    grid-template-columns: 1fr;
  }

  .crystal-dock {
    position: static;
    order: -1;
  }

  .crystal-source {
    min-height: 74px;
    grid-template-columns: 44px 1fr;
    text-align: left;
  }

  .crystal-source small {
    grid-column: 2;
  }

  .report-score-grid {
    grid-template-columns: 1fr;
  }

  .report-task-row {
    grid-template-columns: 1fr;
  }

  .report-stars {
    min-width: 0;
  }
}

@media (min-width: 760px) {
  .start-frame {
    width: min(98vw, 1440px);
    min-height: 720px;
    height: min(92vh, 820px);
    max-height: none;
    overflow: hidden;
    border-radius: 28px;
    border-color: rgba(44, 180, 255, 0.36);
    background: url("/background/登录页面背景-转换自-png-转换自-webp.webp") center / 100% 100% no-repeat;
    box-shadow:
      0 24px 70px rgba(4, 12, 42, 0.36),
      inset 0 0 0 2px rgba(64, 190, 255, 0.18);
  }

  .start-frame .ambient-grid {
    display: none;
  }

  .start-frame .start-screen {
    min-height: 100%;
    display: grid;
    grid-template-columns: minmax(320px, 430px);
    align-items: center;
    justify-content: center;
    justify-items: stretch;
    padding: 5%;
  }

  .start-frame .start-login-panel {
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: stretch;
    display: grid;
    gap: 10px;
    max-height: calc(100% - 24px);
    overflow: auto;
    padding: 24px 30px;
    border: 2px solid rgba(78, 205, 255, 0.72);
    border-radius: 22px;
    background: rgba(5, 25, 88, 0.78);
    color: #f2fbff;
    box-shadow:
      0 0 0 2px rgba(102, 232, 255, 0.12),
      0 0 26px rgba(32, 178, 255, 0.56),
      inset 0 0 24px rgba(62, 123, 255, 0.24);
    backdrop-filter: blur(10px);
  }

  .start-frame .start-login-panel h1 {
    margin: 0;
    color: #ffe15d;
    font-size: clamp(23px, 1.8vw, 31px);
    line-height: 1.12;
    text-align: center;
    text-shadow: 0 3px 0 #0b48b6, 0 0 16px rgba(43, 209, 255, 0.9);
  }

  .start-frame .start-login-panel > p {
    color: #e6fbff;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    font-weight: 850;
  }

  .start-frame .start-login-panel h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 1.55vw, 27px);
    text-align: center;
    text-shadow: 0 2px 0 rgba(0, 35, 120, 0.42);
  }

  .start-frame .login-field span {
    color: #fff;
    font-size: 14px;
  }

  .start-frame .login-field input {
    min-height: 48px;
    border-color: rgba(168, 206, 255, 0.22);
    background: rgba(223, 237, 255, 0.92);
    color: #172554;
    font-size: 16px;
  }

  .start-frame .primary-btn {
    min-height: 54px;
    border: 3px solid rgba(255, 244, 198, 0.7);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffc83d, #f59e0b);
    color: #fff;
    font-size: clamp(20px, 1.55vw, 25px);
    text-shadow: 0 2px 0 rgba(146, 64, 14, 0.55);
    box-shadow:
      0 7px 0 #a94f12,
      0 18px 30px rgba(245, 158, 11, 0.34);
  }

  .start-frame .login-credit {
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid rgba(226, 246, 255, 0.16);
  }

  .start-frame .login-combined-logo {
    width: min(100%, 340px);
    max-height: 82px;
  }

  .start-frame .login-credit p {
    font-size: 12px;
  }

  .intro-frame {
    width: min(98vw, 1440px);
    min-height: 720px;
    height: min(92vh, 820px);
    max-height: none;
    overflow: hidden;
    border-radius: 28px;
    border-color: rgba(44, 180, 255, 0.36);
    background:
      linear-gradient(180deg, rgba(4, 12, 42, 0.14), rgba(4, 12, 42, 0.72)),
      url("/background/登录页面背景-转换自-png-转换自-webp.webp") center / 100% 100% no-repeat;
    box-shadow:
      0 24px 70px rgba(4, 12, 42, 0.36),
      inset 0 0 0 2px rgba(64, 190, 255, 0.18);
  }

  .intro-frame .ambient-grid {
    display: none;
  }

  .intro-frame .story-screen {
    min-height: 100%;
    display: grid;
    grid-template-columns: 31% minmax(0, 1fr) 31%;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px 28px;
    padding: 34px 42px 28px;
  }

  .intro-frame .intro-brand {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    gap: 14px;
    align-content: start;
    padding-top: 14px;
  }

  .intro-frame .intro-brand h1 {
    color: #ffe15d;
    font-size: clamp(64px, 7.2vw, 116px);
    line-height: 0.94;
    text-align: left;
    text-shadow:
      0 4px 0 #0b48b6,
      0 0 22px rgba(43, 209, 255, 0.95);
  }

  .intro-frame .intro-brand h1 span {
    color: #fff;
  }

  .intro-frame .top-pill {
    justify-self: start;
    border: 1px solid rgba(85, 206, 255, 0.62);
    background: rgba(8, 67, 165, 0.88);
    color: #e6fbff;
    font-size: clamp(15px, 1.2vw, 19px);
    padding: 8px 22px;
    box-shadow: 0 0 18px rgba(28, 194, 255, 0.46);
  }

  .intro-frame .intro-brand p {
    max-width: 420px;
    color: #f2fbff;
    font-size: clamp(17px, 1.45vw, 24px);
    line-height: 1.5;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(0, 26, 83, 0.42);
  }

  .intro-frame .intro-host {
    position: absolute;
    left: 3%;
    bottom: 185px;
    z-index: 5;
    width: 29%;
    pointer-events: none;
  }

  .intro-frame .intro-host img {
    width: min(42%, 170px);
    filter: drop-shadow(0 18px 18px rgba(0, 18, 72, 0.42));
  }

  .intro-frame .intro-welcome {
    position: absolute;
    left: 39%;
    bottom: 9%;
    min-width: 220px;
    display: grid;
    gap: 6px;
    padding: 16px 20px;
    border: 3px solid #ffb8c7;
    border-radius: 22px;
    background: rgba(255, 244, 247, 0.96);
    color: #172554;
    box-shadow: 0 9px 0 rgba(191, 93, 115, 0.38);
  }

  .intro-frame .intro-welcome strong,
  .intro-frame .intro-welcome em {
    color: #d84778;
    font-size: 20px;
    font-style: normal;
    font-weight: 950;
  }

  .intro-frame .intro-welcome span,
  .intro-frame .intro-welcome li {
    color: #172554;
    font-size: 14px;
    font-weight: 850;
  }

  .intro-frame .intro-welcome ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 20px;
  }

  .intro-frame .intro-main {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    place-items: center;
    align-content: end;
    gap: 18px;
    min-width: 0;
    text-align: center;
    padding-bottom: 48px;
  }

  .intro-frame .intro-main h2 {
    margin: 0;
    padding: 12px 48px;
    border: 2px solid rgba(61, 210, 255, 0.7);
    border-radius: 18px;
    background: rgba(6, 51, 150, 0.84);
    color: #f2fbff;
    font-size: clamp(30px, 3vw, 46px);
    box-shadow: 0 0 24px rgba(40, 204, 255, 0.72);
  }

  .intro-frame .intro-main p {
    max-width: 560px;
    color: #f2fbff;
    font-size: clamp(16px, 1.35vw, 22px);
    line-height: 1.55;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(0, 26, 83, 0.42);
  }

  .intro-frame .intro-main .primary-btn {
    width: min(320px, 72%);
    min-height: 58px;
    border: 3px solid rgba(255, 244, 198, 0.7);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffc83d, #f59e0b);
    color: #fff;
    font-size: clamp(18px, 1.55vw, 24px);
    text-shadow: 0 2px 0 rgba(146, 64, 14, 0.55);
    box-shadow:
      0 7px 0 #a94f12,
      0 18px 30px rgba(245, 158, 11, 0.34);
  }

  .intro-frame .intro-reward {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 3px solid rgba(71, 197, 255, 0.76);
    border-radius: 24px;
    background: rgba(6, 28, 100, 0.74);
    color: #f2fbff;
    box-shadow:
      0 0 0 3px rgba(102, 232, 255, 0.14),
      0 0 32px rgba(32, 178, 255, 0.62),
      inset 0 0 28px rgba(62, 123, 255, 0.28);
    backdrop-filter: blur(8px);
  }

  .intro-frame .intro-reward h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2vw, 34px);
    text-align: center;
    text-shadow: 0 2px 0 rgba(0, 35, 120, 0.42);
  }

  .intro-frame .reward-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .intro-frame .reward-grid div {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(11, 54, 144, 0.5);
    text-align: center;
  }

  .intro-frame .reward-grid strong,
  .intro-frame .reward-box strong {
    color: #ffe15d;
    font-size: 18px;
  }

  .intro-frame .reward-grid span {
    color: #e6fbff;
    font-size: 13px;
    line-height: 1.38;
    font-weight: 850;
  }

  .intro-frame .reward-box {
    display: grid;
    gap: 12px;
    place-items: center;
    padding: 18px;
    border: 1px solid rgba(85, 206, 255, 0.28);
    border-radius: 18px;
    background: rgba(5, 25, 88, 0.44);
  }

  .intro-frame .reward-box img {
    width: min(170px, 70%);
    height: 118px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(43, 209, 255, 0.6));
  }

  .intro-frame .intro-bottom-note {
    grid-column: 1 / -1;
    grid-row: 2;
    z-index: 4;
    justify-self: center;
    width: min(1160px, 90%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 16px 26px;
    border: 3px solid rgba(112, 232, 255, 0.56);
    border-radius: 20px;
    background: rgba(6, 28, 100, 0.78);
    color: #f2fbff;
    line-height: 1.45;
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.1),
      0 0 22px rgba(40, 204, 255, 0.36),
      inset 0 0 20px rgba(64, 190, 255, 0.18);
    backdrop-filter: blur(8px);
  }

  .intro-frame .intro-bottom-note strong {
    padding: 10px 24px;
    border-radius: 16px;
    background: rgba(6, 51, 150, 0.9);
    color: #fff;
    font-size: clamp(22px, 1.9vw, 32px);
    box-shadow: 0 0 18px rgba(40, 204, 255, 0.62);
    white-space: nowrap;
  }

  .intro-frame .intro-bottom-note span {
    color: #f2fbff;
    font-size: clamp(17px, 1.35vw, 22px);
    font-weight: 950;
    text-align: left;
  }

  }

  body {
    background:
      radial-gradient(circle at 18% 16%, rgba(58, 130, 246, 0.22), transparent 30%),
      radial-gradient(circle at 82% 76%, rgba(34, 197, 94, 0.18), transparent 32%),
      #dff3ff;
  }

  .app-shell {
    align-items: start;
    padding: 20px;
  }

  .game-frame {
    width: min(96vw, 1280px);
    min-height: 620px;
    height: max(620px, min(92vh, calc(96vw * 0.561)));
    max-height: none;
    aspect-ratio: 2000 / 1122;
    overflow: hidden;
    border-radius: 26px;
    background: #d9f1ff;
  }

  .game-frame .ambient-grid {
    display: none;
  }

  .game-frame .level-screen {
    min-height: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
  }

  .game-frame .level-screen.has-level-bg::before {
    background: var(--level-bg) center / 100% 100% no-repeat;
    opacity: 1;
  }

  .game-frame .level-screen.has-level-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(90deg, rgba(239, 249, 255, 0.32) 0%, rgba(239, 249, 255, 0.1) 44%, rgba(239, 249, 255, 0) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(17, 24, 39, 0.04));
  }

  .game-frame .page-header {
    position: absolute;
    top: 3%;
    left: 2%;
    z-index: 4;
    width: 30%;
    max-width: 30%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 34px rgba(30, 64, 175, 0.14);
    backdrop-filter: blur(8px);
  }

  .game-frame .page-header strong {
    font-size: 16px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .game-frame .progress-track {
    position: absolute;
    top: 12%;
    right: 2%;
    z-index: 4;
    width: 24%;
    height: 12px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  }

  .game-frame .test-timer {
    top: auto;
    bottom: 1.2%;
    right: 2%;
    z-index: 5;
  }

  .game-frame .level-type-decision_tree_hatcher .progress-track {
    display: none;
  }

  .game-frame .has-level-bg .question-card {
    display: contents;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
  }

  .game-frame .has-level-bg .question-type {
    display: none;
  }

  .game-frame .has-level-bg h2 {
    display: none;
  }

  .game-frame .has-level-bg .question-card > p {
    position: absolute;
    top: 24%;
    left: 2%;
    z-index: 4;
    width: 32%;
    max-height: 27%;
    overflow: auto;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: #26384f;
    font-size: 12px;
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.1);
    backdrop-filter: blur(8px);
  }

  .game-frame .fox-dialog {
    position: absolute;
    left: 2%;
    bottom: 7%;
    z-index: 4;
    width: 33%;
    max-height: 28%;
    overflow: auto;
    grid-template-columns: 62px 1fr;
    padding: 10px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 34px rgba(146, 64, 14, 0.14);
    backdrop-filter: blur(8px);
  }

  .game-frame .fox-dialog img {
    width: 62px;
  }

  .game-frame .fox-dialog p {
    font-size: 12px;
    line-height: 1.36;
  }

  .game-frame .crystal-playground {
    position: absolute;
    inset: 14% 2% 13% 37%;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
    align-items: stretch;
  }

  .game-frame .device-grid {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-frame .device-card {
    min-height: 0;
    padding: 8px;
    border-color: rgba(255, 255, 255, 0.68);
    border-width: 2px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(7px);
  }

  .game-frame .device-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.62);
  }

  .game-frame .device-card.has-crystal {
    border-color: #16a34a;
    background: rgba(239, 255, 246, 0.9);
  }

  .game-frame .device-image-wrap {
    min-height: 0;
    height: 74%;
    background: rgba(239, 248, 255, 0.82);
  }

  .game-frame .device-image-wrap img {
    max-width: 78%;
    width: 78%;
    height: 86%;
  }

  .game-frame .device-card strong {
    min-height: 0;
    font-size: 13px;
    line-height: 1.25;
  }

  .game-frame .device-tip {
    left: 12px;
    right: 12px;
    bottom: auto;
    top: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.96);
  }

  .game-frame .crystal-dock {
    position: static;
    height: 100%;
  }

  .game-frame .crystal-source {
    height: 100%;
    min-height: 0;
    padding: 14px;
    border: 2px solid rgba(22, 163, 74, 0.68);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 22px 42px rgba(22, 163, 74, 0.2);
    backdrop-filter: blur(8px);
  }

  .game-frame .crystal-source img {
    width: 62px;
    height: 62px;
  }

  .game-frame .crystal-source span {
    font-size: 15px;
  }

  .game-frame .crystal-source small {
    font-size: 12px;
  }

  .game-frame .level-footer {
    position: absolute;
    right: 18.5%;
    bottom: 1.8%;
    z-index: 5;
    width: 260px;
    grid-template-columns: 0.9fr 1.1fr;
    margin: 0;
  }

  .game-frame .feedback {
    position: absolute;
    right: 18.5%;
    bottom: 1.8%;
    z-index: 6;
    width: 260px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
  }

  .result-frame {
    width: min(96vw, 1280px);
    min-height: 680px;
    max-height: none;
    border-radius: 26px;
    background:
      radial-gradient(circle at 14% 16%, rgba(37, 99, 235, 0.18), transparent 24%),
      radial-gradient(circle at 84% 82%, rgba(22, 163, 74, 0.18), transparent 26%),
      linear-gradient(180deg, #f8fcff 0%, #edf8ff 54%, #eafff3 100%);
  }

  .result-frame .result-screen {
    min-height: 680px;
  }

  .result-frame .report-screen {
    display: grid;
    grid-template-columns: minmax(430px, 0.86fr) minmax(430px, 1fr);
    grid-template-rows: auto 1fr;
    align-items: stretch;
    gap: 18px 26px;
    padding: 28px;
  }

  .result-frame .report-page-header {
    grid-column: 1 / -1;
  }

  .result-frame .report-page-header h1 {
    font-size: clamp(34px, 3.2vw, 48px);
  }

  .result-frame .report-preview-wrap {
    grid-column: 1;
    align-self: stretch;
    grid-template-rows: auto 1fr;
    width: 100%;
    margin-top: 0;
  }

  .result-frame .report-download-action,
  .result-frame .report-finish-action {
    align-self: end;
  }

  .result-frame .report-preview img {
    width: 100%;
  }

  .result-frame .report-summary {
    grid-column: 2;
    grid-template-rows: auto auto auto auto 1fr;
    min-width: 0;
  }

  .result-frame .report-summary-header h1 {
    font-size: clamp(30px, 3vw, 44px);
  }

  .result-frame .report-block p {
    font-size: 15px;
    line-height: 1.7;
  }
}

@media (min-width: 900px) {
  .game-frame .page-header {
    width: 36%;
    padding: 14px 18px;
  }

  .game-frame .page-header strong {
    font-size: 22px;
  }

  .game-frame .has-level-bg h2 {
    display: block;
    position: absolute;
    top: 21%;
    left: 2%;
    z-index: 4;
    width: 32%;
    padding: 0;
    font-size: 26px;
    text-align: left;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
  }

  .game-frame .has-level-bg .question-card > p {
    top: 35%;
    font-size: 15px;
  }

  .game-frame .fox-dialog {
    grid-template-columns: 86px 1fr;
    padding: 14px;
  }

  .game-frame .fox-dialog img {
    width: 86px;
  }

  .game-frame .fox-dialog p {
    font-size: 13px;
    line-height: 1.45;
  }

  .game-frame .crystal-playground {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 18px;
  }

  .game-frame .device-grid {
    gap: 16px;
  }

  .game-frame .device-card {
    padding: 12px;
  }

  .game-frame .device-card strong {
    font-size: 16px;
  }

  .game-frame .crystal-source img {
    width: 76px;
    height: 76px;
  }

  .game-frame .crystal-source span {
    font-size: 18px;
  }

  .game-frame .level-footer {
    width: 340px;
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.pet-level-stage {
  display: grid;
  gap: 12px;
}

.hatcher-stage {
  display: grid;
  gap: 12px;
}

.order-panel,
.tree-workbench,
.block-camp,
.hatcher-speech {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
}

.hatcher-fox img {
  width: 92px;
  display: block;
}

.hatcher-speech {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.hatcher-speech p {
  color: #244b86;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.order-panel,
.block-camp {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.order-panel > strong,
.block-camp > strong {
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 950;
}

.order-grid,
.block-list {
  display: grid;
  gap: 10px;
}

.order-card,
.hatcher-block,
.tree-slot {
  border: 0;
  cursor: pointer;
}

.order-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 14px;
  background: #f8fcff;
  color: #132033;
  text-align: left;
}

.order-card.selected {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  background: #e8f2ff;
}

.order-images {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  align-items: center;
  gap: 5px;
}

.order-images img {
  width: 100%;
  height: 56px;
  object-fit: contain;
}

.order-images i {
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
}

.order-card strong {
  font-size: 13px;
  font-weight: 950;
}

.order-card small {
  color: #607089;
  font-size: 11px;
  line-height: 1.35;
}

.tree-workbench {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: 16px;
  background:
    radial-gradient(circle at 22% 18%, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at 70% 86%, rgba(22, 163, 74, 0.14), transparent 24%),
    rgba(248, 252, 255, 0.9);
}

.tree-workbench h3 {
  margin: 0;
  color: #1d4ed8;
  text-align: center;
}

.tree-lines {
  position: absolute;
  inset: 42px 8px 8px;
  width: calc(100% - 16px);
  height: calc(100% - 50px);
  pointer-events: none;
}

.tree-lines path {
  fill: none;
  stroke: rgba(37, 99, 235, 0.5);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.tree-lines path.active-path {
  stroke: #facc15;
  stroke-width: 2.6;
}

.branch-label {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
}

.branch-label.yes {
  background: #22c55e;
}

.branch-label.no {
  background: #ec4899;
}

.branch-label.active-label {
  outline: 3px solid rgba(250, 204, 21, 0.48);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.72);
}

.tree-slot {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 148px;
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 8px;
  border: 2px dashed rgba(37, 99, 235, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #1d4ed8;
  text-align: center;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.12);
}

.tree-slot > span {
  font-size: 30px;
  font-weight: 950;
}

.tree-slot small {
  color: #607089;
  font-size: 11px;
}

.tree-slot.filled {
  border-style: solid;
  border-color: #38bdf8;
  background: rgba(237, 250, 255, 0.95);
}

.tree-slot.active-target {
  border-color: #facc15;
  box-shadow:
    0 0 0 3px rgba(250, 204, 21, 0.24),
    0 0 22px rgba(250, 204, 21, 0.56);
}

.tree-slot img {
  width: 42px;
  height: 36px;
  object-fit: contain;
}

.tree-slot strong {
  color: #132033;
  font-size: 12px;
  line-height: 1.2;
}

.fixed-result-slot {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 112px;
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px;
  border: 2px solid rgba(22, 163, 74, 0.48);
  border-radius: 18px;
  background: rgba(240, 253, 244, 0.92);
  text-align: center;
  box-shadow: 0 12px 22px rgba(22, 163, 74, 0.12);
}

.fixed-result-slot.active-target {
  border-color: #facc15;
  box-shadow:
    0 0 0 3px rgba(250, 204, 21, 0.24),
    0 0 22px rgba(250, 204, 21, 0.56);
}

.fixed-result-slot img {
  width: 70px;
  height: 58px;
  object-fit: contain;
}

.fixed-result-slot strong {
  color: #132033;
  font-size: 12px;
  line-height: 1.2;
}

.hatcher-block {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 8px;
  border: 2px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #fff;
  color: #132033;
  text-align: left;
  font-weight: 900;
}

.hatcher-block img {
  width: 58px;
  height: 54px;
  object-fit: contain;
}

.hatcher-block.picked {
  border-color: #2563eb;
  background: #e9f1ff;
}

.hatcher-block.placed {
  opacity: 0.58;
}

.chip-training-stage {
  display: grid;
  gap: 14px;
}

.chip-brief,
.chip-slot,
.training-pet,
.training-task-board {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.1);
}

.chip-brief {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.chip-brief img,
.training-pet img {
  width: 100%;
  object-fit: contain;
}

.chip-brief p {
  color: #244b86;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.chip-slot {
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 14px;
  text-align: center;
}

.chip-slot h3,
.training-task-card h3 {
  margin: 0;
  color: #1d4ed8;
}

.chip-slot p,
.training-task-card p {
  color: #25384f;
  font-weight: 750;
}

.chip-slot img {
  width: min(72%, 160px);
  object-fit: contain;
}

.training-pet {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
}

.training-pet img {
  max-width: 180px;
  max-height: 170px;
}

.training-pet strong {
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 950;
}

.training-task-board {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.training-task-board > strong {
  color: #1d4ed8;
  font-size: 17px;
  font-weight: 950;
}

.training-task-grid {
  display: grid;
  gap: 12px;
}

.training-task-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  background: #f4fbff;
}

.task-illustration {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  border-radius: 12px;
  background: #eaf4ff;
}

.task-copy {
  display: grid;
  gap: 4px;
}

.task-drag-hint,
.chip-empty-slot,
.chip-placed-task {
  font-weight: 950;
}

.task-drag-hint {
  color: #1d4ed8;
}

.chip-drop-zone {
  width: 100%;
  min-height: 72px;
  border: 2px dashed rgba(37, 99, 235, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: #1d4ed8;
  cursor: pointer;
}

.chip-placed-task {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
}

.chip-placed-task img {
  width: 54px;
  height: 42px;
  object-fit: contain;
}

@media (min-width: 760px) {
  .game-frame .page-header {
    width: auto;
    min-width: 330px;
    max-width: 48%;
    padding: 8px 28px 8px 22px;
    border: 3px solid #d9822b;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff8ea, #fff0cf);
    box-shadow:
      0 5px 0 #b85b1f,
      0 12px 22px rgba(107, 46, 12, 0.22);
  }

  .game-frame .page-header span {
    color: #8f3f13;
    font-size: 22px;
    font-weight: 950;
    text-shadow: 0 1px 0 #fff;
  }

  .game-frame .page-header strong {
    display: none;
  }

  .game-frame .has-level-bg .question-card > p,
  .game-frame .has-level-bg h2 {
    display: none;
  }

  .game-frame .pet-level-stage {
    position: absolute;
    inset: 0;
    z-index: 3;
  }

  .game-frame .fox-host {
    position: absolute;
    left: 4%;
    top: 13%;
    z-index: 5;
    width: 15%;
    pointer-events: none;
  }

  .game-frame .fox-host img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 14px 18px rgba(82, 36, 16, 0.24));
  }

  .game-frame .fox-speech {
    position: absolute;
    left: 22%;
    top: 11%;
    z-index: 4;
    width: 74%;
    min-height: 17%;
    padding: 16px 26px;
    border: 2px solid rgba(196, 111, 41, 0.28);
    border-radius: 20px 20px 20px 6px;
    background: rgba(255, 244, 231, 0.94);
    box-shadow: 0 14px 28px rgba(79, 42, 16, 0.16);
  }

  .game-frame .fox-speech::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 34px;
    border-width: 10px 18px 10px 0;
    border-style: solid;
    border-color: transparent rgba(255, 244, 231, 0.94) transparent transparent;
  }

  .game-frame .fox-speech p {
    color: #244b86;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.4;
    font-weight: 900;
    opacity: 0;
    transform: translateY(6px);
    animation: speechReveal 0.55s ease forwards;
    animation-delay: calc(var(--line-index) * 0.45s);
  }

  .game-frame .fox-speech.speech-played p {
    opacity: 1;
    transform: translateY(0);
    animation: none;
  }

  .game-frame .fox-speech .fox-keyword {
    color: #d14b00;
    font-weight: 950;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  }

  .game-frame .fox-speech .fox-warning {
    color: #0f8f72;
    font-weight: 950;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  }

  .game-frame .hatcher-side-tip .guide-keyword,
  .game-frame .chip-brief .guide-keyword,
  .game-frame .label-brief .guide-keyword {
    color: #d14b00;
    font-weight: 950;
  }

  .game-frame .hatcher-side-tip .guide-warning,
  .game-frame .chip-brief .guide-warning,
  .game-frame .label-brief .guide-warning {
    color: #0f8f72;
    font-weight: 950;
  }

  .game-frame .pet-level-stage .crystal-playground {
    position: absolute;
    left: 15%;
    right: 3%;
    bottom: 12%;
    top: 31%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 13%;
    gap: 16px;
    align-items: stretch;
  }

  .game-frame .pet-level-stage .device-grid {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-frame .pet-level-stage .device-card {
    display: grid;
    grid-template-rows: 28px minmax(72px, 1fr) 30px;
    gap: 4px;
    overflow: hidden;
    min-height: 0;
    padding: 6px 10px 7px;
    border: 3px solid #d99042;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 246, 224, 0.96), rgba(255, 233, 197, 0.94));
    box-shadow:
      inset 0 0 0 2px rgba(255, 255, 255, 0.55),
      0 10px 18px rgba(117, 54, 17, 0.18);
  }

  .game-frame .pet-level-stage .device-card:hover {
    border-color: #f4b15d;
    transform: translateY(-2px);
  }

  .game-frame .pet-level-stage .device-card.has-crystal {
    border-color: #21d4c5;
    box-shadow:
      0 0 0 2px rgba(33, 212, 197, 0.2),
      0 0 22px rgba(33, 212, 197, 0.45),
      0 10px 18px rgba(15, 118, 110, 0.18);
  }

  .game-frame .pet-level-stage .device-card strong {
    order: -1;
    min-height: 0;
    color: #4a2a12;
    font-size: 12px;
    line-height: 1.12;
    font-weight: 950;
  }

  .game-frame .pet-level-stage .device-image-wrap {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: start center;
    overflow: hidden;
    padding: 0 4px 8px;
    border-radius: 10px;
    background: transparent;
  }

  .game-frame .pet-level-stage .device-image-wrap img {
    display: block;
    width: auto;
    max-width: min(78%, 120px);
    height: auto;
    max-height: min(88%, 104px);
    object-fit: contain;
    transform: translateY(-6px);
  }

  .game-frame .pet-level-stage .device-card:nth-child(1) .device-image-wrap img,
  .game-frame .pet-level-stage .device-card:nth-child(2) .device-image-wrap img {
    max-width: min(74%, 112px);
    max-height: min(84%, 98px);
    transform: translateY(-6px);
  }

  .game-frame .pet-level-stage .device-card:nth-child(2) .device-image-wrap img {
    max-width: min(64%, 94px);
    max-height: min(74%, 86px);
    transform: translateY(-8px);
  }

  .game-frame .pet-level-stage .device-slot {
    position: relative;
    z-index: 2;
    align-self: end;
    justify-self: center;
    width: 50%;
    min-width: 74px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 2px dashed #c89569;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    color: #a1622f;
    font-size: 10px;
    font-weight: 900;
  }

  .game-frame .pet-level-stage .device-card.has-crystal .device-slot {
    border-color: #21d4c5;
    background: rgba(230, 255, 252, 0.78);
  }

  .game-frame .pet-level-stage .device-slot img {
    width: 26px;
    height: 26px;
    object-fit: contain;
  }

  .game-frame .pet-level-stage .device-slot i {
    font-style: normal;
  }

  .game-frame .pet-level-stage .device-card.has-crystal .device-slot i {
    display: none;
  }

  .game-frame .pet-level-stage .device-tip {
    left: 10px;
    right: 10px;
    top: 38px;
    bottom: auto;
    z-index: 8;
    border-color: rgba(217, 144, 66, 0.38);
    color: #4a2a12;
    font-size: 12px;
    line-height: 1.35;
  }

  .game-frame .pet-level-stage .crystal-dock {
    position: static;
    height: 100%;
    display: grid;
    align-items: end;
  }

  .game-frame .pet-level-stage .crystal-source {
    position: relative;
    height: 100%;
    min-height: 0;
    border: 3px solid #27fff2;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(19, 37, 83, 0.9), rgba(25, 85, 105, 0.82));
    color: #d8fffb;
    box-shadow:
      0 0 0 3px rgba(39, 255, 242, 0.22),
      0 0 28px rgba(39, 255, 242, 0.78),
      inset 0 0 24px rgba(112, 255, 245, 0.26);
  }

  .game-frame .pet-level-stage .crystal-source img {
    width: min(72%, 90px);
    height: auto;
    filter: drop-shadow(0 0 16px rgba(176, 105, 255, 0.9));
  }

  .game-frame .pet-level-stage .crystal-source span {
    color: #d8fffb;
    font-size: 16px;
    font-weight: 950;
  }

  .game-frame .pet-level-stage .crystal-source small {
    color: #b9fffb;
    font-size: 11px;
    font-weight: 900;
  }

  .game-frame .pet-level-stage .crystal-source.picked {
    outline: 0;
    transform: translateY(-4px);
    box-shadow:
      0 0 0 4px rgba(255, 255, 255, 0.34),
      0 0 34px rgba(39, 255, 242, 0.9),
      inset 0 0 24px rgba(112, 255, 245, 0.34);
  }

  .game-frame .hatcher-stage {
    position: absolute;
    inset: 0;
    z-index: 3;
  }

  .game-frame .hatcher-fox {
    display: none;
  }

  .game-frame .hatcher-fox img {
    width: 100%;
    filter: drop-shadow(0 12px 18px rgba(0, 23, 84, 0.34));
  }

  .game-frame .hatcher-speech {
    display: none;
  }

  .game-frame .hatcher-speech p {
    color: #f2fbff;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 900;
    opacity: 0;
    transform: translateY(6px);
    animation: speechReveal 0.55s ease forwards;
    animation-delay: calc(var(--line-index) * 0.45s);
  }

  .game-frame .hatcher-speech.speech-played p {
    opacity: 1;
    transform: translateY(0);
    animation: none;
  }

  .game-frame .hatcher-side-tip {
    position: absolute;
    left: 34%;
    right: 2%;
    top: 2.4%;
    z-index: 8;
    height: 118px;
    max-height: 118px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px 14px;
    border: 2px solid rgba(127, 245, 255, 0.62);
    border-radius: 18px;
    background: rgba(8, 30, 102, 0.78);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.1),
      0 0 22px rgba(127, 245, 255, 0.36),
      inset 0 0 16px rgba(47, 129, 255, 0.28);
  }

  .game-frame .hatcher-side-tip img {
    width: 88px;
    height: 98px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 23, 84, 0.28));
  }

  .game-frame .hatcher-side-tip div {
    min-width: 0;
    display: grid;
    gap: 3px;
    max-height: 100%;
    overflow: hidden;
  }

  .game-frame .hatcher-side-tip p {
    margin: 0;
    color: #f2fbff;
    font-size: 16px;
    line-height: 1.22;
    font-weight: 850;
    opacity: 0;
    transform: translateY(4px);
    animation: speechReveal 0.55s ease forwards;
    animation-delay: calc(var(--line-index) * 0.35s);
  }

  .game-frame .hatcher-side-tip.speech-played p {
    opacity: 1;
    transform: translateY(0);
    animation: none;
  }

  .game-frame .order-panel {
    position: absolute;
    left: 1.2%;
    top: 23%;
    bottom: 13%;
    z-index: 5;
    width: 21%;
    display: grid;
    grid-template-rows: 20px 38px minmax(0, 1fr);
    gap: 5px;
    padding: 9px 10px 10px;
    border: 2px solid #19b7ff;
    border-radius: 18px;
    background: rgba(8, 55, 152, 0.82);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.14),
      0 0 26px rgba(19, 200, 255, 0.5),
      inset 0 0 18px rgba(38, 103, 255, 0.28);
  }

  .game-frame .order-panel > strong,
  .game-frame .block-camp > strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 2px 0 rgba(0, 35, 120, 0.42);
  }

  .game-frame .panel-hint {
    margin: 0;
    padding: 0 6px 2px;
    background: transparent;
    color: #c8f4ff;
    font-size: 11px;
    line-height: 1.28;
    font-weight: 800;
    text-align: center;
    overflow: hidden;
  }

  .game-frame .order-grid {
    min-height: 0;
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .game-frame .order-card {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 5px 7px 18px;
    border: 2px solid rgba(126, 214, 255, 0.7);
    border-radius: 12px;
    background: rgba(232, 247, 255, 0.93);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  }

  .game-frame .order-card.selected {
    border-color: #ffd54a;
    outline: 0;
    box-shadow:
      inset 0 0 0 2px rgba(255, 213, 74, 0.34),
      0 0 18px rgba(255, 213, 74, 0.58);
  }

  .game-frame .hatcher-stage.needs-order .order-panel {
    border-color: #fff178;
    animation: orderGuidePulse 1.1s ease-in-out infinite alternate;
    box-shadow:
      0 0 0 4px rgba(255, 241, 120, 0.22),
      0 0 34px rgba(255, 241, 120, 0.82),
      inset 0 0 22px rgba(255, 241, 120, 0.18);
  }

  .game-frame .hatcher-stage.needs-order .order-panel > strong {
    color: #fff178;
  }

  .game-frame .hatcher-stage.needs-order .order-card {
    cursor: pointer;
  }

  .game-frame .hatcher-stage.needs-order .tree-workbench,
  .game-frame .hatcher-stage.needs-order .block-camp {
    opacity: 0.52;
    filter: grayscale(0.35);
  }

  .game-frame .hatcher-stage.needs-order .tree-slot,
  .game-frame .hatcher-stage.needs-order .hatcher-block {
    pointer-events: none;
    cursor: not-allowed;
  }

  .game-frame .hatcher-stage.needs-order .block-camp .panel-hint {
    color: #fff178;
  }

  .game-frame .order-images {
    width: 100%;
    height: 100%;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 7px;
  }

  .game-frame .order-images img {
    width: 100%;
    height: 64px;
    object-fit: contain;
  }

  .game-frame .order-images i {
    width: 18px;
    height: 11px;
    border-radius: 999px;
    background: #2b5cff;
  }

  .game-frame .order-card strong {
    position: absolute;
    right: 9px;
    bottom: 6px;
    min-width: 86px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #2b5cff;
    color: #fff;
    font-size: 11px;
    text-align: center;
  }

  .game-frame .order-card small {
    display: none;
  }

  .game-frame .tree-workbench {
    position: absolute;
    left: 24%;
    right: 24%;
    top: 23%;
    bottom: 13%;
    z-index: 4;
    min-height: 0;
    padding: 0;
    border: 3px solid #15cfff;
    border-radius: 22px;
    background:
      radial-gradient(circle at 22% 28%, rgba(38, 146, 255, 0.18), transparent 26%),
      radial-gradient(circle at 72% 76%, rgba(23, 255, 242, 0.14), transparent 22%),
      rgba(4, 25, 88, 0.58);
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.12),
      0 0 30px rgba(16, 185, 255, 0.74),
      inset 0 0 28px rgba(34, 130, 255, 0.42);
  }

  .game-frame .tree-workbench h3 {
    position: absolute;
    left: 14px;
    top: 12px;
    z-index: 8;
    transform: none;
    min-width: 0;
    margin: 0;
    padding: 5px 13px;
    border: 2px solid #7ff5ff;
    border-radius: 12px;
    background: #2468ff;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    box-shadow: 0 0 18px rgba(127, 245, 255, 0.8);
  }

  .game-frame .level-type-decision_tree_hatcher .level-footer {
    right: 28%;
    bottom: 4.8%;
    width: 300px;
    z-index: 8;
  }

  .game-frame .tree-lines {
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .game-frame .tree-lines path {
    stroke: #61e6ff;
    stroke-width: 1.6;
    filter: drop-shadow(0 0 3px rgba(97, 230, 255, 0.9));
  }

  .game-frame .tree-lines path.active-path {
    stroke: #ffe66d;
    stroke-width: 3.6;
    filter:
      drop-shadow(0 0 5px rgba(255, 230, 109, 0.95))
      drop-shadow(0 0 11px rgba(255, 180, 48, 0.8));
  }

  .game-frame .branch-label {
    z-index: 6;
    min-width: 27px;
    height: 22px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
    box-shadow:
      0 0 0 2px rgba(6, 32, 95, 0.18),
      0 6px 12px rgba(6, 32, 95, 0.26);
  }

  .game-frame .branch-label.active-label {
    border-color: #fff6a6;
    outline: 0;
    box-shadow:
      0 0 0 3px rgba(255, 230, 109, 0.22),
      0 0 18px rgba(255, 230, 109, 0.95);
    transform: translate(-50%, -50%) scale(1.08);
  }

  .game-frame .tree-slot {
    z-index: 5;
    width: 24%;
    min-height: 12%;
    padding: 7px;
    border: 3px dashed #66e8ff;
    border-radius: 18px;
    background: #0b4fc4;
    color: #e8fbff;
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.12),
      0 0 18px rgba(102, 232, 255, 0.64),
      inset 0 0 18px rgba(49, 130, 255, 0.38);
  }

  .game-frame .tree-slot > span {
    color: #e8fbff;
    font-size: 34px;
  }

  .game-frame .tree-slot small {
    color: #bdefff;
    font-size: 10px;
    font-weight: 900;
  }

  .game-frame .tree-slot.filled {
    border-style: solid;
    border-color: #96fff4;
    background: #dffbff;
  }

  .game-frame .tree-slot.active-target {
    border-color: #ffe66d;
    box-shadow:
      0 0 0 4px rgba(255, 230, 109, 0.2),
      0 0 24px rgba(255, 230, 109, 0.86),
      inset 0 0 18px rgba(255, 230, 109, 0.2);
  }

  .game-frame .tree-slot img {
    width: 40px;
    height: 36px;
  }

  .game-frame .tree-slot strong {
    color: #06205f;
    font-size: 12px;
    font-weight: 950;
  }

  .game-frame .fixed-result-slot {
    z-index: 5;
    width: 17%;
    min-height: 15%;
    padding: 7px;
    border: 3px solid #7ff5ff;
    border-radius: 18px;
    background: #dcfcff;
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.12),
      0 0 18px rgba(127, 245, 255, 0.54),
      inset 0 0 14px rgba(49, 130, 255, 0.18);
  }

  .game-frame .fixed-result-slot.active-target {
    border-color: #ffe66d;
    box-shadow:
      0 0 0 4px rgba(255, 230, 109, 0.2),
      0 0 24px rgba(255, 230, 109, 0.86),
      inset 0 0 18px rgba(255, 230, 109, 0.2);
  }

  .game-frame .fixed-result-slot img {
    width: 68%;
    height: 54%;
    object-fit: contain;
  }

  .game-frame .fixed-result-slot strong {
    color: #06205f;
    font-size: 12px;
    font-weight: 950;
  }

  .game-frame .block-camp {
    position: absolute;
    right: 1.4%;
    top: 23%;
    bottom: 13%;
    z-index: 5;
    width: 21%;
    display: grid;
    grid-template-rows: 20px 38px minmax(0, 1fr);
    gap: 7px;
    padding: 9px 10px 10px;
    border: 2px solid #a78bfa;
    border-radius: 20px;
    background: rgba(82, 69, 185, 0.82);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.14),
      0 0 26px rgba(167, 139, 250, 0.54),
      inset 0 0 20px rgba(196, 181, 253, 0.26);
  }

  .game-frame .block-list {
    min-height: 0;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .game-frame .hatcher-block {
    min-height: 0;
    grid-template-columns: 52px 1fr;
    gap: 7px;
    padding: 6px;
    border: 2px solid rgba(185, 229, 255, 0.75);
    border-radius: 14px;
    background: rgba(232, 247, 255, 0.94);
    color: #0f2444;
    font-size: 13px;
    line-height: 1.2;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  }

  .game-frame .hatcher-block img {
    width: 62px;
    height: 58px;
  }

  .game-frame .hatcher-block.picked {
    border-color: #fff178;
    background: #fff9c7;
    box-shadow: 0 0 18px rgba(255, 241, 120, 0.62);
  }

}

@keyframes speechReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orderGuidePulse {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-3px);
  }
}

@media (min-width: 760px) {
  .game-frame .level-type-chip_training .progress-track {
    display: none;
  }

  .game-frame .chip-training-stage {
    position: absolute;
    inset: 0;
    z-index: 3;
  }

  .game-frame .chip-brief {
    position: absolute;
    left: 30%;
    right: 6%;
    top: 2.4%;
    z-index: 8;
    min-height: 11%;
    grid-template-columns: 78px 1fr;
    padding: 8px 16px 8px 8px;
    border: 2px solid #1bd7ff;
    border-radius: 20px;
    background: rgba(9, 45, 136, 0.84);
    box-shadow:
      0 0 0 2px rgba(114, 229, 255, 0.15),
      0 0 20px rgba(27, 215, 255, 0.68),
      inset 0 0 18px rgba(33, 118, 255, 0.34);
  }

  .game-frame .chip-brief img {
    width: 78px;
    height: 78px;
    filter: drop-shadow(0 10px 14px rgba(0, 22, 80, 0.32));
  }

  .game-frame .chip-brief p {
    color: #f2fbff;
    font-size: clamp(12px, 1.18vw, 17px);
    line-height: 1.32;
    font-weight: 900;
    opacity: 0;
    transform: translateY(6px);
    animation: speechReveal 0.55s ease forwards;
    animation-delay: calc(var(--line-index) * 0.45s);
  }

  .game-frame .chip-brief.speech-played p {
    opacity: 1;
    transform: translateY(0);
    animation: none;
  }

  .game-frame .chip-slot {
    position: absolute;
    top: 16%;
    z-index: 4;
    width: 27%;
    height: 47%;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    padding: 3.8% 3% 2.4%;
    border: 0;
    border-radius: 28px;
    background: rgba(8, 31, 96, 0.78);
    box-shadow:
      inset 0 0 0 3px rgba(140, 210, 255, 0.56),
      0 0 30px rgba(27, 215, 255, 0.34);
  }

  .game-frame .chip-slot-classifying {
    left: 9.2%;
  }

  .game-frame .chip-slot-generating {
    right: 8.8%;
    background: rgba(62, 20, 111, 0.8);
    box-shadow:
      inset 0 0 0 3px rgba(216, 158, 255, 0.62),
      0 0 32px rgba(178, 84, 255, 0.44);
  }

  .game-frame .chip-slot h3 {
    color: #fff;
    font-size: clamp(24px, 2.4vw, 38px);
    line-height: 1;
    text-shadow: 0 3px 0 rgba(0, 20, 80, 0.52);
  }

  .game-frame .chip-slot p {
    color: #e7f8ff;
    font-size: clamp(13px, 1.35vw, 20px);
    line-height: 1.2;
    font-weight: 900;
  }

  .game-frame .chip-slot img {
    align-self: center;
    width: min(92%, 250px);
    max-height: 100%;
    filter: drop-shadow(0 0 18px rgba(36, 228, 255, 0.72));
  }

  .game-frame .chip-slot-generating img {
    filter: drop-shadow(0 0 20px rgba(215, 97, 255, 0.86));
  }

  .game-frame .training-pet {
    position: absolute;
    left: 38.6%;
    top: 24%;
    z-index: 5;
    width: 22.8%;
    height: 34%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .game-frame .training-pet::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 16%;
    height: 19%;
    border-radius: 50%;
    background: rgba(51, 214, 255, 0.36);
    box-shadow:
      0 0 0 7px rgba(34, 194, 255, 0.28),
      0 0 28px rgba(34, 194, 255, 0.84);
  }

  .game-frame .training-pet img {
    position: relative;
    z-index: 2;
    align-self: end;
    max-width: 92%;
    max-height: 92%;
    filter: drop-shadow(0 18px 18px rgba(0, 17, 61, 0.34));
  }

  .game-frame .training-pet strong {
    position: relative;
    z-index: 3;
    min-width: 78%;
    padding: 9px 18px;
    border: 2px solid #1bd7ff;
    border-radius: 12px;
    background: rgba(6, 70, 174, 0.9);
    color: #fff;
    font-size: clamp(16px, 1.7vw, 26px);
    line-height: 1;
    text-align: center;
    text-shadow: 0 2px 0 #09277f;
    box-shadow:
      0 0 0 2px rgba(114, 229, 255, 0.18),
      0 0 20px rgba(27, 215, 255, 0.72);
  }

  .game-frame .training-task-board {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 10%;
    z-index: 6;
    height: 25.5%;
    display: grid;
    grid-template-rows: 34px minmax(0, 1fr);
    gap: 0;
    padding: 0 12px 12px;
    border: 2px solid #58e5ff;
    border-radius: 16px;
    background: rgba(7, 44, 130, 0.42);
    box-shadow:
      0 0 0 2px rgba(114, 229, 255, 0.14),
      0 0 22px rgba(27, 215, 255, 0.42);
  }

  .game-frame .training-task-board > strong {
    justify-self: start;
    align-self: start;
    min-width: 15%;
    padding: 7px 22px 8px;
    border: 2px solid #58e5ff;
    border-radius: 12px 12px 0 0;
    background: #1266dc;
    color: #f2fbff;
    font-size: clamp(14px, 1.45vw, 21px);
    line-height: 1;
    text-align: center;
    box-shadow: 0 0 18px rgba(27, 215, 255, 0.72);
  }

  .game-frame .training-task-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5%;
  }

  .game-frame .training-task-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 30% minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 28px;
    gap: 6px 14px;
    padding: 10px 16px;
    border: 2px solid #79e8ff;
    border-radius: 16px;
    background: rgba(227, 250, 255, 0.94);
    color: #061d46;
    text-align: left;
    cursor: grab;
    box-shadow:
      0 0 0 2px rgba(20, 148, 255, 0.16),
      0 0 20px rgba(60, 216, 255, 0.46),
      inset 0 0 0 2px rgba(255, 255, 255, 0.54);
  }

  .game-frame .task-illustration {
    grid-row: 1 / 3;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 11px;
    background: rgba(194, 230, 255, 0.7);
  }

  .game-frame .task-copy {
    min-height: 0;
    overflow: visible;
    align-content: start;
    gap: 5px;
  }

  .game-frame .training-task-card h3 {
    color: #082a80;
    font-size: clamp(16px, 1.42vw, 22px);
    line-height: 1.16;
    font-weight: 950;
  }

  .game-frame .training-task-card p {
    color: #061d46;
    font-size: clamp(11px, 0.9vw, 15px);
    line-height: 1.3;
    font-weight: 850;
  }

  .game-frame .task-drag-hint {
    align-self: center;
    justify-self: start;
    padding: 5px 12px;
    border: 2px solid rgba(36, 99, 235, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #2145c4;
    font-size: clamp(11px, 1vw, 15px);
    line-height: 1;
  }

  .game-frame .training-task-card.picked {
    border-color: #fff178;
    background: #fff9c7;
    box-shadow: 0 0 18px rgba(255, 241, 120, 0.62);
  }

  .game-frame .training-task-card.placed {
    opacity: 0.56;
  }

  .game-frame .chip-drop-zone {
    align-self: end;
    min-height: 74px;
    padding: 8px;
    border: 2px dashed rgba(127, 245, 255, 0.74);
    border-radius: 16px;
    background: rgba(232, 247, 255, 0.16);
    color: #e8fbff;
    text-align: center;
    box-shadow:
      inset 0 0 14px rgba(127, 245, 255, 0.18),
      0 0 16px rgba(127, 245, 255, 0.22);
  }

  .game-frame .chip-empty-slot {
    color: #c8f4ff;
    font-size: clamp(12px, 1.05vw, 16px);
  }

  .game-frame .chip-placed-task {
    min-height: 54px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(227, 250, 255, 0.92);
    color: #082a80;
  }

  .game-frame .chip-placed-task img {
    width: 58px;
    height: 44px;
  }

  .game-frame .chip-placed-task strong {
    font-size: clamp(11px, 0.95vw, 15px);
    line-height: 1.16;
  }

  .game-frame .level-type-chip_training .level-footer {
    left: 37%;
    right: auto;
    bottom: 1.4%;
    z-index: 8;
    width: 320px;
    grid-template-columns: 0.8fr 1.2fr;
  }
}

@media (min-width: 760px) {
  .game-frame .level-type-label_recipe .progress-track {
    display: none;
  }

  .game-frame .label-recipe-stage {
    position: absolute;
    inset: 0;
    z-index: 3;
  }

  .game-frame .label-brief {
    position: absolute;
    left: 32%;
    right: 2%;
    top: 2.2%;
    z-index: 8;
    min-height: 11%;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    padding: 8px 18px 8px 8px;
    border: 2px solid #1bd7ff;
    border-radius: 20px;
    background: rgba(9, 45, 136, 0.86);
    box-shadow:
      0 0 0 2px rgba(114, 229, 255, 0.16),
      0 0 20px rgba(27, 215, 255, 0.68),
      inset 0 0 18px rgba(33, 118, 255, 0.34);
  }

  .game-frame .label-brief img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 22, 80, 0.32));
  }

  .game-frame .label-brief p {
    margin: 0;
    color: #f2fbff;
    font-size: clamp(13px, 1.28vw, 19px);
    line-height: 1.34;
    font-weight: 900;
    opacity: 0;
    transform: translateY(6px);
    animation: speechReveal 0.55s ease forwards;
    animation-delay: calc(var(--line-index) * 0.45s);
  }

  .game-frame .label-brief.speech-played p {
    opacity: 1;
    transform: translateY(0);
    animation: none;
  }

  .game-frame .feeding-zone {
    position: absolute;
    left: 2%;
    top: 18%;
    bottom: 13%;
    z-index: 4;
    width: 36%;
  }

  .game-frame .feeding-callout {
    position: absolute;
    left: 2%;
    top: 0;
    z-index: 4;
    width: 30%;
    min-height: 16%;
    display: grid;
    gap: 6px;
    align-content: center;
    justify-items: center;
    padding: 10px 12px;
    border: 3px solid #ffcf79;
    border-radius: 18px;
    background: rgba(255, 246, 224, 0.94);
    color: #17336b;
    box-shadow:
      0 5px 0 rgba(184, 91, 31, 0.46),
      0 14px 24px rgba(30, 64, 175, 0.18);
  }

  .game-frame .feeding-callout strong {
    color: #4b59c8;
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .game-frame .feeding-callout span {
    color: #17336b;
    font-size: clamp(10px, 0.86vw, 13px);
    line-height: 1.25;
    font-weight: 850;
    text-align: center;
  }

  .game-frame .feeding-pet {
    position: absolute;
    left: 31%;
    top: 11%;
    z-index: 3;
    width: 42%;
    max-height: 36%;
    object-fit: contain;
    filter: drop-shadow(0 16px 18px rgba(0, 20, 78, 0.34));
  }

  .game-frame .feeding-bowl {
    position: absolute;
    left: 3%;
    right: 2%;
    bottom: 7%;
    z-index: 2;
    height: 46%;
    display: grid;
    place-items: center;
    border: 4px solid rgba(105, 235, 255, 0.42);
    border-radius: 50% 50% 22% 22%;
    background: rgba(7, 36, 91, 0.32);
    box-shadow:
      0 0 0 6px rgba(55, 194, 255, 0.1),
      0 0 24px rgba(55, 194, 255, 0.34),
      inset 0 0 24px rgba(55, 194, 255, 0.12);
  }

  .game-frame .feeding-bowl span {
    min-width: 58%;
    padding: 18px 22px;
    border: 3px dashed rgba(209, 245, 255, 0.58);
    border-radius: 28px;
    background: rgba(7, 36, 91, 0.22);
    color: #e7f7ff;
    font-size: clamp(18px, 2vw, 30px);
    font-weight: 950;
    text-align: center;
  }

  .game-frame .recipe-tip {
    position: absolute;
    left: 6%;
    bottom: 2.4%;
    z-index: 6;
    width: 28%;
    display: grid;
    gap: 6px;
    padding: 12px 18px;
    border: 2px solid #7dd3fc;
    border-radius: 16px;
    background: rgba(237, 249, 255, 0.9);
    color: #0f2f77;
    box-shadow: 0 0 18px rgba(27, 215, 255, 0.44);
  }

  .game-frame .recipe-tip strong {
    color: #1d4ed8;
    font-size: clamp(14px, 1.25vw, 18px);
  }

  .game-frame .recipe-tip span {
    font-size: clamp(12px, 1vw, 15px);
    line-height: 1.36;
    font-weight: 850;
  }

  .game-frame .evidence-panel {
    position: absolute;
    left: 41%;
    right: 2%;
    top: 20%;
    bottom: 13%;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 2.2%;
  }

  .game-frame .evidence-box {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: 34px minmax(0, 1fr) 36px;
    gap: 7px;
    padding: 10px;
    border: 3px solid rgba(255, 255, 255, 0.54);
    border-radius: 18px;
    background: rgba(232, 247, 255, 0.9);
    color: #0f2f77;
    cursor: pointer;
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.18),
      0 12px 24px rgba(0, 22, 80, 0.18),
      inset 0 0 0 2px rgba(255, 255, 255, 0.44);
  }

  .game-frame .evidence-box.selected {
    border-color: #fff178;
    box-shadow:
      0 0 0 4px rgba(255, 241, 120, 0.28),
      0 0 24px rgba(255, 241, 120, 0.88),
      inset 0 0 0 2px rgba(255, 255, 255, 0.56);
  }

  .game-frame .evidence-green {
    background: rgba(203, 246, 212, 0.94);
  }

  .game-frame .evidence-blue {
    background: rgba(196, 232, 255, 0.94);
  }

  .game-frame .evidence-purple {
    background: rgba(222, 205, 255, 0.94);
  }

  .game-frame .evidence-red {
    background: rgba(255, 205, 192, 0.94);
  }

  .game-frame .evidence-box > strong {
    min-width: 0;
    align-self: center;
    justify-self: center;
    max-width: 100%;
    padding: 6px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: #083275;
    font-size: clamp(13px, 1.25vw, 19px);
    line-height: 1;
    white-space: nowrap;
  }

  .game-frame .evidence-box em {
    color: #dc2626;
    font-style: normal;
  }

  .game-frame .evidence-items {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 249, 240, 0.86);
  }

  .game-frame .evidence-item {
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 24px;
    gap: 5px;
    align-items: end;
  }

  .game-frame .evidence-item img {
    width: 100%;
    height: 54px;
    object-fit: contain;
  }

  .game-frame .evidence-item small {
    display: grid;
    place-items: center;
    min-height: 24px;
    padding: 2px 4px;
    border: 1px solid rgba(30, 64, 175, 0.16);
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-size: clamp(8px, 0.72vw, 12px);
    line-height: 1;
    font-weight: 950;
    white-space: nowrap;
  }

  .game-frame .evidence-item small.danger-label {
    background: #dc2626;
  }

  .game-frame .evidence-item small.empty-label {
    background: rgba(255, 255, 255, 0.82);
    color: transparent;
  }

  .game-frame .evidence-select-mark {
    justify-self: center;
    align-self: center;
    display: grid;
    grid-template-columns: 30px auto;
    gap: 9px;
    align-items: center;
    color: #1345a6;
    font-size: clamp(13px, 1.2vw, 18px);
    font-weight: 950;
  }

  .game-frame .evidence-select-mark i {
    width: 30px;
    height: 30px;
    border: 3px solid #fff;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
  }

  .game-frame .evidence-box.selected .evidence-select-mark i {
    background:
      linear-gradient(135deg, transparent 45%, #fff 46% 56%, transparent 57%),
      #22c55e;
  }

  .game-frame .level-type-label_recipe .level-footer {
    left: 42%;
    right: auto;
    bottom: 2.2%;
    z-index: 8;
    width: 320px;
    grid-template-columns: 0.8fr 1.2fr;
  }
}
