@charset "UTF-8";
[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #f6f6fb;
  color: #252b43;
  font:
    20px/1.65 "Malgun Gothic",
    "Apple SD Gothic Neo",
    system-ui,
    sans-serif;
  letter-spacing: -0.035em;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid #d9dbe8;
  border-radius: 12px;
  background: #fff;
  color: #343950;
  min-height: 56px;
  padding: 12px 20px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover:enabled {
  background: #f0edff;
  border-color: #9c8bd8;
}
button:active:enabled {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 4px solid #f2b84d;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.45;
  letter-spacing: -0.065em;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.055em;
}
h3 {
  font-size: 20px;
  margin: 14px 0;
}
small,
.fineprint {
  font-size: 14px;
  color: #73798e;
  line-height: 1.7;
}
input:not([type="checkbox"]):not([type="range"]):not([type="color"]),
select,
textarea {
  width: 100%;
  border: 1px solid #d5d9e5;
  border-radius: 10px;
  padding: 15px 17px;
  background: #fff;
  color: #252b43;
  min-height: 58px;
}
textarea {
  resize: vertical;
  font-size: 20px;
  line-height: 1.7;
}
input[type="color"] {
  height: 50px;
  width: 70px;
  border: 0;
  background: none;
  vertical-align: middle;
}
input[type="range"] {
  accent-color: #7a60ce;
  width: 170px;
}
input[type="checkbox"] {
  accent-color: #775bcc;
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0 8px;
}
progress {
  appearance: none;
  height: 6px;
  width: 100%;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: #e5e5ee;
}
progress::-webkit-progress-bar {
  background: #e5e5ee;
}
progress::-webkit-progress-value {
  background: #8b73cf;
  border-radius: 99px;
}
.primary {
  color: #fff;
  background: #7658c5;
  border-color: #7658c5;
  box-shadow: 0 5px 12px #7658c51c;
}
.primary:hover:enabled {
  color: #fff;
  background: #6447b1;
}
.secondary {
  background: #fff;
}
.wide {
  width: 100%;
  margin: 6px 0;
}
.eyebrow {
  font:
    700 12px/1.6 system-ui,
    sans-serif;
  letter-spacing: 0.15em;
  color: #8270b1;
}
.topbar {
  height: 99px;
  padding: 0 38px;
  background: #fff;
  border-bottom: 1px solid #e9e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font:
    bold 19px/1.4 system-ui,
    sans-serif;
  letter-spacing: 0.025em;
}
.brand small {
  display: block;
  font:
    13px/1.9 "Malgun Gothic",
    sans-serif;
  letter-spacing: -0.03em;
  color: #77788d;
}
.brand-mark {
  height: 42px;
  width: 42px;
  border-radius: 12px;
  background: #7858c7;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 29px;
  transform: skew(-8deg);
}
.header-progress {
  width: 275px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #75798f;
}
.header-progress b {
  color: #7d61be;
  font-size: 14px;
}
.header-progress progress {
  margin-top: 10px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-button {
  width: 42px;
  min-height: 42px;
  height: 42px;
  padding: 0;
  font-size: 18px;
  border-radius: 50%;
  border: 1px solid #ecebf2;
  color: #6f718b;
}
.student-badge {
  font-size: 13px;
  color: #77718e;
  background: #f7f5fb;
  padding: 6px 12px;
  border-radius: 99px;
  margin-right: 8px;
}
.app-layout {
  display: grid;
  grid-template-columns: 266px 1fr;
  max-width: 1720px;
  margin: auto;
}
.sidebar {
  padding: 32px 20px 25px 30px;
  border-right: 1px solid #e6e6f0;
  background: #fbfbfe;
  min-height: calc(100vh - 99px);
}
.sidebar-label {
  font:
    10px system-ui,
    sans-serif;
  letter-spacing: 0.16em;
  color: #9a93ad;
}
.sidebar h2 {
  font-size: 23px;
  line-height: 1.55;
  margin: 12px 0 25px;
  color: #3d3a56;
}
.nav-group {
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #9691a5;
  margin: 23px 0 9px 10px;
}
.nav-step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 40px;
  font-size: 12px;
  font-weight: 500;
  color: #7a798f;
  line-height: 1.5;
  white-space: normal;
}
.nav-step span {
  font: 11px system-ui;
  min-width: 22px;
  min-height: 22px;
  border: 1px solid #e2dfea;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
}
.nav-step.current {
  color: #7654bb;
  background: #eee8fa;
  font-weight: 700;
}
.nav-step.current span {
  color: #fff;
  background: #8563cb;
  border-color: #8563cb;
}
.nav-step:disabled {
  opacity: 0.55;
}
.sidebar-tip {
  margin: 30px 8px 0 0;
  padding: 20px 18px;
  background: #f0edf7;
  border-radius: 12px;
}
.sidebar-tip > span {
  font-size: 12px;
  font-weight: 700;
  color: #8770b5;
}
.sidebar-tip p {
  font-size: 14px;
  line-height: 1.8;
  margin: 10px 0;
  color: #726b85;
}
.sidebar-tip small {
  font-size: 11px;
}
.source-link {
  display: block;
  font-size: 12px;
  margin: 22px 0;
  color: #8a839b;
}
main {
  min-width: 0;
  padding: 29px 38px 0;
}
.breadcrumb {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9493a5;
  margin: 0 0 30px;
}
.breadcrumb > span:not(.chapter-chip) {
  color: #c9c5d5;
}
.chapter-chip {
  margin-left: auto;
  color: #8d7ba9;
  font: 10px system-ui;
  letter-spacing: 0.08em;
  background: #eeeaf5;
  padding: 5px 9px;
  border-radius: 6px;
}
.welcome-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding-bottom: 35px;
  border-bottom: 1px solid #e6e4ef;
}
.hero-copy .small-pill {
  display: table;
  font-size: 11px;
  background: #ede7f8;
  color: #8869b4;
  padding: 4px 10px;
  border: 1px solid #e1d8ef;
  border-radius: 99px;
  margin-top: 18px;
}
.hero-copy h1 {
  font-size: 43px;
  line-height: 1.45;
  margin: 14px 0 16px;
  letter-spacing: -0.075em;
}
.hero-copy h1 em {
  font-style: normal;
  color: #7655bf;
}
.hero-copy > p {
  font-size: 17px;
  line-height: 1.9;
  color: #79768c;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 15px;
  margin-top: 24px;
  color: #8c839f;
  font-size: 11px;
}
.hero-game {
  border-radius: 18px;
  background: #111a35;
  box-shadow: 0 18px 35px #30244c20;
  overflow: hidden;
  transform: rotate(1deg);
  border: 1px solid #d2cee0;
}
.hero-game-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font:
    8px system-ui,
    sans-serif;
  letter-spacing: 0.09em;
  padding: 13px;
  color: #a4afca;
  border-bottom: 1px solid #ffffff14;
}
.hero-game-label > span:last-child {
  margin-left: auto;
  font-size: 8px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #77d4bd;
  border-radius: 50%;
}
.hero-game .race-canvas {
  max-height: 295px;
  border-radius: 0;
}
.hero-game-bottom {
  padding: 14px;
  color: #e8e8f5;
  background: #19213a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.hero-game-bottom > span {
  font: 6px system-ui;
  letter-spacing: 0.09em;
  color: #a5b0c9;
}
.hero-game-bottom b {
  font-size: 10px;
}
.entry-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 32px 0;
}
.entry-section h2 {
  margin: 9px 0;
  font-size: 23px;
}
.entry-section p {
  font-size: 14px;
  color: #8c859a;
  line-height: 1.8;
  max-width: 320px;
}
.entry-fields {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px 10px;
  align-items: center;
}
.entry-fields label {
  font-size: 13px;
  margin: 0;
}
.entry-fields label > span {
  color: #b783b3;
}
.entry-fields input {
  font-size: 17px;
  min-height: 52px !important;
  padding: 10px 13px !important;
}
.entry-fields > button,
.entry-fields > small {
  grid-column: 1/-1;
}
.folder-button {
  min-height: 44px;
  font-size: 12px;
  border-style: dashed;
  background: #f9f7fd;
  color: #86729f;
}
.entry-fields small {
  font-size: 11px;
}
.privacy-note {
  font-size: 11px;
  color: #9891a5;
  background: #eeedf5;
  padding: 12px 16px;
  border-radius: 9px;
}
.text-button {
  background: none;
  border: none;
  color: #8066b5;
  font-size: 13px;
  min-height: 35px;
  padding: 5px 8px;
  text-decoration: underline;
}
.lesson-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e5e2ed;
  margin-top: 30px;
  padding: 22px 0 26px;
}
.lesson-footer button {
  font-size: 14px;
  min-height: 51px;
  white-space: nowrap;
}
.lesson-footer > p {
  font-size: 11px;
  color: #9891a5;
  text-align: center;
}
.lesson-footer [data-state="error"] {
  color: #b16443;
}
.lesson-footer [data-state="saved"] {
  color: #548b79;
}
.lesson-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}
.lesson-heading h1 {
  margin: 7px 0 9px;
  font-size: 30px;
}
.lesson-heading p {
  font-size: 17px;
  color: #858094;
}
.activity-badge {
  padding: 8px 13px;
  border-radius: 99px;
  background: #ece8f7;
  color: #8b72ac;
  white-space: nowrap;
  font-size: 11px;
}
.activity-panel {
  background: #fff;
  border: 1px solid #e6e2ed;
  border-radius: 16px;
  padding: 24px;
}
.activity-status {
  font-size: 15px;
  padding: 14px 16px;
  background: #f1f7f4;
  color: #528a77;
  border-radius: 9px;
  margin-top: 22px;
  min-height: 48px;
}
.activity-work .tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.tool-row button {
  font-size: 14px;
  padding: 9px 13px;
}
.sticker-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}
.car-stage {
  position: relative;
  background: radial-gradient(ellipse at center, #f1edf9, #f5f7fc);
  border: 1px solid #e8e6f1;
  border-radius: 12px;
}
.car-stage canvas {
  width: 100%;
  display: block;
  touch-action: none;
}
.stage-tag {
  position: absolute;
  top: 14px;
  left: 15px;
  font: 9px system-ui;
  letter-spacing: 0.13em;
  color: #a69ab9;
}
.sticker-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.sticker-palette button {
  font-size: 24px;
  padding: 7px;
  min-width: 0;
  background: #faf9fe;
}
.selected {
  border-color: #9072cf !important;
  background: #eee8fc !important;
  color: #7653bb;
}
.hint {
  font-size: 13px;
  color: #8a8497;
  line-height: 1.7;
  margin: 12px 0;
}
.learn-note {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f0edf8;
  padding: 16px 20px;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 14px;
  color: #8977a7;
}
.learn-note b {
  white-space: nowrap;
}
.drawing-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.drawing-tools label {
  font-size: 13px;
}
.drawing-tools select {
  font-size: 14px;
  min-height: 45px;
  padding: 8px;
}
.drawing-tools button {
  font-size: 13px;
  min-height: 45px;
}
.drawing-canvas {
  width: 100%;
  height: auto;
  background: #fafbfe;
  border: 1px solid #e7e6ef;
  border-radius: 12px;
  touch-action: none;
  margin-top: 20px;
}
.puzzle-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 16px;
  margin-bottom: 16px;
}
.lane-board {
  height: 330px;
  width: min(440px, 100%);
  margin: auto;
  background: repeating-linear-gradient(
    90deg,
    #2c354e 0,
    #2c354e 32.6%,
    #d7ddeb 32.6%,
    #d7ddeb 33.3%
  );
  position: relative;
  border: 9px solid #dee7df;
  border-radius: 12px;
  touch-action: none;
  overflow: hidden;
}
.lane-obstacles span {
  position: absolute;
  top: 30px;
  font-size: 48px;
}
.puzzle-player {
  position: absolute;
  bottom: 24px;
  transform: translateX(-50%);
  font-size: 62px;
}
.course-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.course-map {
  border-radius: 14px;
  background: #eff3f9;
  border: 1px solid #dfe4f0;
  padding: 22px;
}
.course-map small {
  font: 11px system-ui;
  letter-spacing: 0.12em;
}
.course-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.course-sequence > span {
  font-size: 15px;
  color: #fff;
  background: #3b4561;
  padding: 10px 14px;
  border-left: 3px solid #f4cb6c;
  border-radius: 5px;
}
.course-sequence b {
  font-size: 10px;
  color: #a4b2d6;
}
.course-decor {
  font-size: 14px;
  color: #8c79ad;
}
.speed-dial {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 14px;
}
.speed-dial strong {
  font: bold 85px system-ui;
  color: #7b5ec8;
}
.speed-dial small {
  font-size: 22px;
}
.experiment-road {
  height: 150px;
  background: repeating-linear-gradient(
      90deg,
      #35415d 0 50px,
      #e8e4be 50px 90px,
      #35415d 90px 140px
    )
    center/auto 4px no-repeat #35415d;
  border-radius: 12px;
  position: relative;
  margin: 20px 0;
}
.experiment-road > span {
  position: absolute;
  font-size: 60px;
  top: 40px;
}
.experiment-checks {
  color: #8666ba;
}
.command-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.command-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  aspect-ratio: 1;
  max-width: 450px;
  background: #eff2f7;
  gap: 3px;
  border: 8px solid #d8e2e0;
  border-radius: 12px;
  overflow: hidden;
}
.command-grid > div {
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 28px;
  border: 1px solid #edeef2;
}
.command-sequence {
  padding: 18px;
  border: 2px dashed #dad1ec;
  min-height: 110px;
  background: #f8f5fd;
  border-radius: 10px;
  font-size: 16px;
  color: #8c70b3;
}
.coding-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.prompt-panel {
  background: #fff;
  border: 1px solid #e4dfed;
  border-radius: 14px;
  padding: 23px;
}
.assistant-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eee9f5;
  padding-bottom: 18px;
}
.assistant-heading > span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #ede6f9;
  color: #8c70c4;
  font-size: 25px;
}
.assistant-heading b {
  font-size: 15px;
}
.assistant-heading small {
  display: block;
  font-size: 10px;
}
.simulation-tag {
  margin-left: auto;
  background: #f3f0f8;
  padding: 4px 7px;
  font-size: 9px;
  color: #a193b2;
  border-radius: 5px;
}
.assistant-bubble {
  background: #f4f0fa;
  border-radius: 0 12px 12px 12px;
  padding: 17px;
  margin: 20px 0;
  font-size: 17px;
  color: #766786;
  line-height: 1.9;
}
.example-label {
  font-size: 12px;
  color: #aaa0b6;
  margin-bottom: 9px;
}
.example-prompt {
  font-weight: 500;
  text-align: left;
  font-size: 16px;
  border: 1px solid #dcd2ed;
  line-height: 1.85;
  padding: 15px;
  background: #fcfaff;
}
.example-prompt > span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #8b6ebb;
}
.prompt-panel label {
  font-size: 13px;
  margin-top: 23px;
}
.prompt-response {
  font-size: 13px;
  color: #886ab3;
  margin: 12px 0;
}
.fineprint {
  margin-top: 15px;
  font-size: 11px;
  line-height: 1.8;
}
.preview-panel {
  border: 1px solid #e2deeb;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  border-bottom: 1px solid #eeebf3;
}
.preview-heading h2 {
  font-size: 15px;
}
.preview-heading > span {
  font: 10px system-ui;
  color: #9b8fb1;
  letter-spacing: 0.04em;
}
.race-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  background: #0c122b;
  touch-action: none;
}
.game-wrap {
  position: relative;
}
.race-controls,
.game-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 9px 12px 0;
}
.race-controls button {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  min-height: 45px;
  padding: 8px 4px;
  touch-action: none;
  user-select: none;
}
.race-controls button:last-child {
  background: #7d61be;
  color: #fff;
  border-color: #7d61be;
}
.game-actions button {
  font-size: 10px;
  padding: 7px 9px;
  min-height: 35px;
  flex: 1;
}
.game-help {
  font-size: 10px;
  text-align: center;
  color: #a096ad;
  padding: 12px;
  line-height: 1.8;
}
.config-summary {
  background: #f7f5fa;
  padding: 15px 20px;
  border-top: 1px solid #ece7f4;
}
.config-summary small {
  font-size: 10px;
}
.config-summary p {
  font-size: 12px;
  color: #827291;
  margin-top: 5px;
}
.code-heading {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  background: #1d2339;
  color: #bcc2dc;
  padding: 12px;
  border-radius: 10px 10px 0 0;
}
#code-area {
  margin-top: 20px;
}
#code-lines {
  font:
    12px/1.8 Consolas,
    monospace;
  background: #121b2f;
  color: #b6daca;
  height: 190px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 12px;
  margin: 0;
}
#code-time {
  font-size: 12px;
  color: #8c7ba4;
}
.game-result {
  position: absolute;
  top: 20%;
  left: 5%;
  right: 5%;
  background: #121b35ee;
  border: 1px solid #bcafff;
  border-radius: 15px;
  padding: 22px;
  color: #fff;
  text-align: center;
}
.game-result[hidden] {
  display: none;
}
.game-result h3 {
  font-size: 23px;
}
.game-result p {
  font-size: 14px;
  margin: 12px 0;
}
.finish-heading {
  text-align: center;
  margin: 10px 0 35px;
}
.completion-medal {
  display: block;
  font-size: 40px;
  color: #a081ca;
  margin-bottom: 10px;
}
.finish-heading h1 {
  font-size: 34px;
  color: #5a4784;
  margin: 12px 0;
}
.finish-heading p {
  font-size: 16px;
  color: #92879f;
}
.finish-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
}
.finish-details {
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e6e0ef;
}
.finish-details h2 {
  margin-top: 8px;
  font-size: 23px;
}
.finish-details dl {
  display: grid;
  grid-template-columns: 95px 1fr;
  font-size: 14px;
  gap: 15px 10px;
  margin: 22px 0;
}
.finish-details dt {
  color: #a094ae;
}
.finish-details dd {
  margin: 0;
  color: #6e627e;
  overflow-wrap: anywhere;
}
.finish-details button {
  font-size: 14px;
}
.finish-details > p {
  font-size: 12px;
  color: #91839f;
  margin-top: 15px;
}
.file-name {
  font-size: 12px;
}
dialog {
  border: 1px solid #dfd7eb;
  border-radius: 20px;
  box-shadow: 0 25px 100px #24203830;
  padding: 34px;
  width: min(600px, 94vw);
  color: #443650;
  background: #fff;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #211b3f80;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 25px;
  line-height: 1.6;
  margin: 0 0 16px;
}
dialog p {
  font-size: 17px;
  line-height: 1.9;
  margin: 15px 0;
}
dialog button {
  margin: 8px 8px 0 0;
}
dialog label {
  margin-bottom: 17px;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e6f4eb;
  display: grid;
  place-items: center;
  color: #5c9d7d;
  font-size: 32px;
  margin-bottom: 20px;
}
.admin-dialog {
  width: min(1200px, 95vw);
}
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 20px 0;
}
.admin-stats span {
  background: #f3edf9;
  padding: 16px;
  font-size: 15px;
  border-radius: 10px;
}
.admin-stats b {
  display: block;
  font-size: 30px;
  color: #7b5db3;
}
.admin-filter {
  display: flex;
  align-items: end;
  gap: 15px;
  flex-wrap: wrap;
}
.admin-filter label {
  flex: 1;
}
.admin-filter button {
  margin-bottom: 17px;
}
.admin-dialog .tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-dialog .tool-row button {
  font-size: 13px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e8e0ee;
}
td button {
  font-size: 12px;
  min-height: 40px;
  padding: 7px 10px;
}
td small {
  display: block;
  font-size: 10px;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
#artifact-preview {
  width: 100%;
  height: 500px;
  border: 1px solid #dbd2e8;
  border-radius: 10px;
}
details pre {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 14px 24px;
  background: #37324de8;
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  z-index: 10;
  display: none;
}
#toast.show {
  display: block;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
#intro {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #30265a, #0d142d);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
#intro span {
  font: 12px system-ui;
  letter-spacing: 0.2em;
  color: #aaa1dc;
}
#intro h1 {
  font-size: 42px;
  margin: 20px 0 10px;
}
#intro p {
  color: #c2bbde;
}
.intro-road {
  font-size: 100px;
  animation: arrive 1.8s ease both;
  filter: drop-shadow(0 20px 20px #a58aff80);
  margin-bottom: 30px;
}
@keyframes arrive {
  from {
    transform: translateX(-200px) scale(0.6);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.large-text {
  font-size: 24px;
}
.large-text main p,
.large-text main label,
.large-text main button,
.large-text .nav-step {
  font-size: 20px;
}
.large-text .hero-copy h1 {
  font-size: 48px;
}
.high-contrast {
  color: #111;
  background: #fff;
}
.high-contrast p,
.high-contrast small,
.high-contrast label,
.high-contrast .nav-step,
.high-contrast .hint {
  color: #242030 !important;
}
.high-contrast .primary {
  background: #503393;
  color: #fff !important;
}
.reduced-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (min-width: 1600px) {
  main {
    padding-left: 55px;
    padding-right: 55px;
  }
  .hero-copy h1 {
    font-size: 53px;
  }
  .hero-game .race-canvas {
    max-height: 350px;
  }
}
@media (max-width: 1200px) {
  .topbar {
    padding: 0 22px;
  }
  .app-layout {
    grid-template-columns: 225px 1fr;
  }
  .sidebar {
    padding-left: 20px;
  }
  main {
    padding: 25px 24px 0;
  }
  .welcome-hero {
    gap: 24px;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero-game-bottom {
    padding: 10px;
  }
  .entry-fields {
    grid-template-columns: 90px 1fr;
  }
  .header-progress {
    width: 210px;
  }
  .student-badge {
    display: none;
  }
  .lesson-heading h1 {
    font-size: 26px;
  }
  .sticker-layout {
    gap: 15px;
  }
  .activity-panel {
    padding: 18px;
  }
  .coding-layout {
    gap: 15px;
  }
  .prompt-panel {
    padding: 16px;
  }
}
@media (max-width: 960px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 85px;
  }
  .brand {
    font-size: 16px;
  }
  .header-progress {
    display: none;
  }
  .welcome-hero {
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy h1 {
    font-size: 38px;
  }
  .coding-layout,
  .finish-layout {
    grid-template-columns: 1fr 1fr;
  }
  .lesson-heading h1 {
    font-size: 28px;
  }
  main {
    padding: 23px;
  }
  .nav-step {
    font-size: 14px;
  }
}
@media (max-width: 680px) {
  .topbar {
    padding: 0 16px;
    gap: 10px;
  }
  .brand-mark {
    width: 34px;
    height: 36px;
    font-size: 24px;
  }
  .brand {
    gap: 9px;
    font-size: 13px;
  }
  .brand small {
    font-size: 10px;
  }
  .header-tools {
    gap: 6px;
  }
  .icon-button {
    width: 35px;
    height: 35px;
    min-height: 35px;
    font-size: 15px;
  }
  .welcome-hero {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .hero-copy h1 {
    font-size: 42px;
  }
  .hero-copy > p {
    font-size: 17px;
  }
  .hero-game {
    transform: none;
  }
  .hero-game .race-canvas {
    max-height: 330px;
  }
  .hero-game-bottom b {
    font-size: 11px;
  }
  .entry-section,
  .coding-layout,
  .finish-layout,
  .sticker-layout,
  .course-layout,
  .command-layout {
    grid-template-columns: 1fr;
  }
  .entry-fields {
    grid-template-columns: 110px 1fr;
  }
  .entry-fields label {
    font-size: 15px;
  }
  .entry-fields small {
    font-size: 12px;
  }
  .entry-section h2 {
    font-size: 24px;
  }
  .entry-section p {
    font-size: 15px;
  }
  .breadcrumb {
    margin-bottom: 25px;
  }
  .lesson-heading {
    align-items: start;
  }
  .lesson-heading h1 {
    font-size: 25px;
  }
  .lesson-heading p {
    font-size: 16px;
  }
  .activity-badge {
    display: none;
  }
  .lesson-footer {
    gap: 10px;
    flex-wrap: wrap;
  }
  .lesson-footer p {
    order: 3;
    width: 100%;
  }
  .lesson-footer button {
    font-size: 15px;
  }
  .learn-note {
    display: block;
    font-size: 14px;
  }
  .learn-note span {
    display: block;
    margin-top: 8px;
  }
  .car-stage canvas {
    max-height: 400px;
    object-fit: contain;
  }
  .activity-work button {
    min-height: 52px;
  }
  .puzzle-head {
    display: block;
  }
  .puzzle-head span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
  }
  .race-canvas {
    max-height: 520px;
  }
  .race-controls button {
    font-size: 14px;
    min-height: 52px;
  }
  .game-actions button {
    font-size: 12px;
    min-height: 44px;
  }
  .game-help {
    font-size: 12px;
  }
  .assistant-heading b {
    font-size: 17px;
  }
  .assistant-heading small {
    font-size: 12px;
  }
  .prompt-panel label {
    font-size: 16px;
  }
  .example-label {
    font-size: 14px;
  }
  .fineprint {
    font-size: 12px;
  }
  .finish-heading h1 {
    font-size: 29px;
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
  .admin-filter {
    display: block;
  }
  .admin-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  #intro h1 {
    font-size: 29px;
  }
  .large-text .hero-copy h1 {
    font-size: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
