:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #29473f;
  background: #dcecf2;
  font-synthesis: none;
  --ink: #29473f;
  --muted: #78847a;
  --paper: #fffdf5;
  --green: #3b6855;
  --line: #e5e8dc;
  --gold: #d9ac56;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #daae59;
  outline-offset: 3px;
}
button svg {
  vertical-align: middle;
  flex-shrink: 0;
}
button {
  transition:
    background 0.18s,
    transform 0.18s;
}
button:active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
#game {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #eef6f8, #b3d9ed);
}
#game canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#actors {
  touch-action: none;
  cursor: grab;
}
#actors:active {
  cursor: grabbing;
}
#foreground {
  pointer-events: none;
}
.topbar {
  position: fixed;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fffdf5ed;
  padding: 11px 19px 11px 12px;
  border-radius: 19px;
  box-shadow: 0 4px 30px #3d68510b;
  border: 1px solid #ffffffbc;
}
.brandmark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #e5eee1;
  color: #3f715b;
  font-size: 33px;
  border-radius: 14px;
  line-height: 1;
}
.brand strong {
  font-size: 15px;
  letter-spacing: 3px;
  display: block;
}
.brand small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.4px;
  margin-top: 6px;
  font-weight: 600;
  color: #7b8d80;
}
.welcome-account {
  font-size: 12px;
  background: #fffdf5eb;
  padding: 13px 19px;
  border-radius: 24px;
}
.welcome-account span {
  margin-left: 18px;
}
.welcome {
  position: fixed;
  top: 50%;
  transform: translateY(-43%);
  left: 36px;
  width: 350px;
  background: #fffdf3f5;
  padding: 31px 28px 25px;
  border-radius: 26px;
  box-shadow: 0 15px 65px #345f431b;
  border: 1px solid #fff;
  z-index: 3;
}
.eyebrow {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.7px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #708678;
}
.live-dot {
  height: 6px;
  width: 6px;
  border-radius: 100%;
  background: #80a77f;
  display: inline-block;
  flex-shrink: 0;
}
.welcome h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: -1.6px;
  margin: 24px 0 17px;
}
.welcome h1 em {
  color: #68937e;
  font-style: italic;
}
.welcome p {
  font-size: 12px;
  line-height: 1.9;
  color: #798477;
  margin: 0 0 24px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--green);
  color: #fff9e8;
  border: 1px solid var(--green);
  border-radius: 13px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 650;
}
.primary:hover {
  background: #2b5744;
}
.primary.large {
  width: 100%;
  justify-content: space-between;
  padding: 16px 19px;
}
.secondary {
  border: 1px solid #d9dfcf;
  border-radius: 12px;
  padding: 12px 17px;
  background: #f2f4e9;
  font-size: 12px;
}
.text-btn {
  font-size: 12px;
  color: #547966;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px;
}
.welcome-foot {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid #e5e9dc;
  margin-top: 26px;
  padding-top: 19px;
}
.welcome-foot span:last-child {
  font-size: 10px;
  line-height: 1.8;
  color: #8b9586;
}
.welcome-foot b {
  font-weight: 500;
  color: #657d6a;
}
.mini-milo {
  border-radius: 12px;
  width: 39px;
  height: 39px;
  background: #e5eee3;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #668f81;
}
.build-tag {
  display: block;
  margin-top: 22px;
  font-size: 7px;
  color: #9aa28e;
  letter-spacing: 1.5px;
}
#load-note {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  background: #fffdf5e8;
  border-radius: 20px;
  padding: 12px 18px;
  z-index: 8;
}
#hud {
  display: flex;
  gap: 10px;
  align-items: center;
}
.profile-chip,
.currency {
  background: #fffdf5f2;
  border: 1px solid #fff;
  border-radius: 24px;
  padding: 9px 15px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  box-shadow: 0 4px 22px #274e3512;
}
.profile-chip .avatar-dot {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: white;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.profile-chip small {
  font-size: 9px;
  color: #89917e;
}
.currency #star-icon {
  color: #d9ad55;
}
.currency small {
  font-size: 9px;
  color: #8d9681;
}
.currency b {
  font-size: 16px;
}
.circle {
  height: 42px;
  width: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fffdf5f0;
  border: 1px solid #ffffffbc;
  box-shadow: 0 3px 16px #284d3210;
}
.circle:hover {
  background: #e9efdf;
}
.quest-card {
  position: fixed;
  left: 28px;
  top: 116px;
  width: 246px;
  border-radius: 18px;
  background: #fffdf3eb;
  border: 1px solid #fff;
  padding: 17px 18px;
  z-index: 3;
  box-shadow: 0 8px 35px #37583a0c;
}
.quest-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1.1px;
}
.quest-card h3 {
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 7px;
  max-width: 190px;
}
.quest-card p {
  font-size: 10px;
  color: #7e8b7c;
  line-height: 1.7;
  margin: 5px 0;
}
.quest-card button {
  font-size: 10px;
  color: #52775f;
  padding: 8px 0 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quest-card .progress {
  height: 4px;
  background: #e6e9da;
  margin-top: 10px;
}
.progress {
  overflow: hidden;
  border-radius: 20px;
}
.progress i {
  display: block;
  height: 100%;
  background: #91b487;
  transition: width 0.4s;
}
#mini-map {
  position: fixed;
  right: 28px;
  top: 98px;
  width: 133px;
  z-index: 3;
  background: #fffdf4e8;
  border-radius: 17px;
  border: 1px solid white;
  padding: 6px;
  box-shadow: 0 8px 25px #284b3212;
}
#mini-map button {
  padding: 0;
  width: 100%;
}
#mini-map img {
  display: block;
  width: 100%;
  border-radius: 12px;
}
#mini-map span {
  font-size: 6px;
  letter-spacing: 1px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  padding: 8px 6px 4px;
}
.location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  background: #fffdf5d9;
  border-radius: 30px;
  padding: 10px 16px;
}
.mode-note {
  font-size: 8px;
  padding-left: 10px;
  border-left: 1px solid #d3ddcf;
  color: #8b9685;
}
#playbar {
  position: fixed;
  bottom: 25px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}
#playbar > * {
  pointer-events: auto;
}
.quick-actions {
  display: flex;
  gap: 9px;
}
.quick-actions .circle {
  height: 40px;
  width: 40px;
}
.camera-actions {
  position: fixed;
  right: 30px;
  bottom: 86px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 3;
}
.camera-actions button {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  background: #fffdf3e8;
  border-radius: 9px;
  font-size: 18px;
}
.name-tag {
  position: fixed;
  transform: translate(-50%, -100%);
  font-size: 10px;
  font-weight: 700;
  color: white;
  text-shadow:
    0 1px 4px #203b30,
    0 0 2px #203b30;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}
.milo-tag {
  position: fixed;
  transform: translate(-50%, -100%);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px #34594b;
  z-index: 2;
  padding: 6px;
}
.milo-tag b {
  font-size: 10px;
  color: #7b6526;
  background: #fff6bd;
  text-shadow: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.place-label {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 30px;
  border: 1px solid #ffffffee;
  border-radius: 50%;
  background: #fffcefeb;
  box-shadow: 0 3px 12px #31502b26;
  color: #3e6352;
  transition: background 0.2s;
}
.place-label:hover {
  background: #fff7ce;
}
.place-label svg {
  width: 14px;
  height: 14px;
}
.place-label .tooltip {
  display: none;
  position: absolute;
  white-space: nowrap;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  background: #315a49ed;
  color: #fff7e7;
  border-radius: 6px;
  padding: 5px 8px;
}
.place-label:hover .tooltip,
.place-label:focus-visible .tooltip {
  display: block;
}
body[data-screen="welcome"] .place-label {
  display: none;
}
#interact {
  position: fixed;
  bottom: 87px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 15px;
  border: 1px solid white;
  background: #fffaf0f5;
  padding: 9px 15px 9px 9px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 650;
  box-shadow: 0 7px 30px #34503d2b;
  z-index: 5;
  white-space: nowrap;
}
kbd {
  background: #e5ecda;
  color: #53725c;
  padding: 8px 11px;
  border-radius: 9px;
  font: 700 11px inherit;
}
.room-card {
  position: fixed;
  top: 115px;
  left: 28px;
  background: #fffdf3ed;
  border-radius: 18px;
  padding: 19px;
  width: 240px;
  z-index: 3;
}
.room-card h2 {
  font:
    25px Georgia,
    serif;
  margin: 10px 0;
}
.room-card p {
  font-size: 11px;
  color: #7a8978;
  line-height: 1.7;
}
.room-card .primary {
  font-size: 11px;
  width: 100%;
  padding: 11px;
}
.room-card .text-btn {
  margin-top: 8px;
  width: 100%;
}
#toast {
  position: fixed;
  z-index: 30;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: #294b40f5;
  color: #fff8e4;
  font-size: 12px;
  line-height: 1.6;
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 50px #233d2c22;
}
#modal-layer {
  position: fixed;
  inset: 0;
  background: #243e334d;
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 26px;
}
#modal {
  position: relative;
  background: var(--paper);
  border: 1px solid #fff;
  border-radius: 25px;
  padding: 34px;
  width: min(620px, 100%);
  max-height: calc(100dvh - 52px);
  overflow-y: auto;
  box-shadow: 0 25px 100px #183b3540;
}
#modal.wide {
  width: min(960px, 100%);
}
#modal.map-modal {
  width: min(1100px, 100%);
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 24px;
  background: #eef1e5;
  box-shadow: none;
  width: 32px;
  height: 32px;
  z-index: 3;
}
.modal-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #81917a;
  margin-bottom: 12px;
}
h2.modal-title {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.5px;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 40px 11px 0;
}
.subtext {
  font-size: 12px;
  line-height: 1.85;
  color: #7c8877;
  margin: 8px 0 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label.field {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #6b7e6b;
  margin: 14px 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce2d1;
  border-radius: 12px;
  background: #f8f9ee;
  color: #294d3e;
  padding: 12px 13px;
  font-size: 13px;
  margin-top: 7px;
  outline: none;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
.grade-picker {
  display: flex;
  gap: 9px;
  margin: 8px 0 22px;
}
.grade-picker button {
  flex: 1;
  border-radius: 12px;
  border: 1px solid #dce2d0;
  padding: 14px 0;
  background: #f1f4e9;
  font-size: 14px;
  font-weight: 600;
}
.grade-picker button[aria-pressed="true"] {
  background: #436e57;
  color: white;
  border-color: #436e57;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 21px;
  flex-wrap: wrap;
}
.form-actions .primary {
  flex: 1;
}
.error-text {
  font-size: 12px;
  color: #a85645;
  background: #faede0;
  padding: 12px;
  border-radius: 10px;
  line-height: 1.6;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #edf1e2;
  border-radius: 20px;
  font-size: 10px;
  color: #6d8168;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 17px 0 20px;
}
.tabs button {
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 11px;
  border: 1px solid #dce4d2;
}
.tabs button.active {
  background: #436e57;
  color: white;
  border-color: #436e57;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card {
  background: #f2f4e8;
  border: 1px solid #e3e8d7;
  border-radius: 16px;
  padding: 17px;
  text-align: left;
}
.card h3 {
  font-size: 14px;
  margin: 9px 0;
  line-height: 1.5;
}
.card p {
  font-size: 11px;
  color: #798b76;
  line-height: 1.7;
  margin: 7px 0;
}
.card .primary,
.card .secondary {
  padding: 9px 12px;
  font-size: 11px;
  margin-top: 9px;
}
.card-icon {
  height: 39px;
  width: 39px;
  border-radius: 12px;
  background: #e2e8d5;
  display: grid;
  place-items: center;
  color: #608366;
}
.card-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border-bottom: 1px solid #e8ebdf;
  padding: 16px 0;
  text-align: left;
}
.card-row:last-child {
  border-bottom: 0;
}
.card-row strong {
  font-size: 13px;
  display: block;
}
.card-row small {
  font-size: 10px;
  color: #84917d;
  display: block;
  margin-top: 6px;
}
.card-row > .grow {
  flex: 1;
}
.card-row .arrow {
  color: #829375;
}
.empty {
  text-align: center;
  padding: 30px 16px;
  color: #8b9786;
  font-size: 12px;
  line-height: 1.9;
}
.banner {
  padding: 15px 17px;
  background: #edf1df;
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.8;
  color: #66805e;
  margin: 17px 0;
}
.dialogue {
  background: #edf2e6;
  border-radius: 17px;
  padding: 20px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.9;
}
.npc-head {
  display: flex;
  align-items: center;
  gap: 15px;
}
.npc-face {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #dfead9;
  border-radius: 18px;
  color: #648a74;
}
.npc-head strong {
  font-size: 14px;
}
.npc-head small {
  display: block;
  font-size: 10px;
  color: #8a9781;
  margin-top: 7px;
}
.chat-log {
  max-height: 200px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.9;
}
.bubble {
  padding: 12px 15px;
  background: #edf1e5;
  border-radius: 13px;
  margin: 8px 0;
}
.bubble.you {
  background: #dfe9dc;
  margin-left: 32px;
}
.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.chat-form input {
  margin: 0;
}
.chat-form button {
  flex-shrink: 0;
}
.chat-source {
  font-size: 9px;
  color: #919d89;
  margin-top: 10px;
}
.lesson-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #77896f;
  margin-bottom: 19px;
}
.lesson-top .progress {
  width: 40%;
  height: 5px;
  background: #e5e9d9;
}
.lesson-visual {
  min-height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  letter-spacing: 8px;
  background: #f0f3e4;
  border-radius: 17px;
  padding: 20px;
  margin: 16px 0;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.question {
  font-size: 21px;
  line-height: 1.6;
  font-weight: 650;
  margin: 23px 0;
}
.question-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.question-header .question {
  flex: 1;
}
.question-header .circle {
  flex-shrink: 0;
  margin-top: 21px;
  width: 36px;
  height: 36px;
}
.answers {
  display: grid;
  gap: 9px;
}
.answer {
  padding: 15px 17px;
  border: 1px solid #dce3cf;
  border-radius: 13px;
  text-align: left;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 13px;
  background: #fffdf6;
}
.answer b {
  border: 1px solid #dfe5d4;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #8a987e;
}
.answer.selected {
  border: 2px solid #6c986d;
  background: #edf4e3;
  padding: 14px 16px;
}
.answer.correct {
  background: #e6f0db;
  border-color: #80a879;
}
.answer.wrong {
  background: #fbede2;
  border-color: #d7a485;
}
.feedback {
  margin-top: 20px;
  border-radius: 14px;
  padding: 17px;
  background: #edf3e4;
  color: #587951;
  font-size: 13px;
  line-height: 1.8;
}
.feedback.wrong {
  background: #fbefdf;
  color: #a47b45;
}
.feedback strong {
  display: block;
  margin-bottom: 6px;
}
.result-hero {
  text-align: center;
  padding: 15px;
}
.result-hero .big-star {
  font-size: 57px;
  color: #d0a54d;
}
.result-hero h2 {
  font:
    32px Georgia,
    serif;
  margin: 16px 0;
}
.result-hero p {
  font-size: 12px;
  color: #7a8971;
  line-height: 1.9;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}
.stat {
  padding: 17px 12px;
  background: #edf1e3;
  border-radius: 14px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 24px;
  color: #52745d;
}
.stat small {
  font-size: 9px;
  color: #87937d;
  display: block;
  margin-top: 6px;
}
.history-item {
  border: 1px solid #e0e7d4;
  border-radius: 14px;
  margin: 10px 0;
  overflow: hidden;
}
.history-item summary {
  padding: 15px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.history-answer {
  padding: 14px 17px;
  border-top: 1px solid #e4e9db;
  font-size: 12px;
  line-height: 1.8;
}
.history-answer p {
  margin: 5px 0;
}
.history-answer .right {
  color: #57884f;
}
.history-answer .wrong {
  color: #b77853;
}
.purchase-icon {
  font-size: 36px;
  display: block;
  margin: 6px 0 15px;
}
.garden-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.plot {
  background: linear-gradient(#ebf1df, #e2ebd5);
  border: 1px solid #d8e4ca;
  border-radius: 17px;
  text-align: center;
  padding: 20px;
}
.plot .plant {
  font-size: 42px;
  min-height: 57px;
  display: block;
}
.plot h3 {
  font-size: 12px;
  margin: 10px 0;
}
.plot small {
  font-size: 10px;
  color: #879679;
  display: block;
}
.plot button {
  margin-top: 14px;
}
.sorting-item {
  text-align: center;
  background: #f1f4e5;
  border-radius: 20px;
  padding: 24px;
  margin: 20px 0;
}
.sorting-item .emoji {
  font-size: 64px;
  display: block;
  margin: 12px 0 19px;
}
.bins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.bins button {
  background: #e5eedc;
  border: 1px solid #cddfc3;
  border-radius: 14px;
  padding: 20px 7px;
  font-size: 12px;
}
.bins button:nth-child(2) {
  background: #e2edf0;
  border-color: #c9dce2;
}
.bins button:nth-child(3) {
  background: #f0e9dc;
  border-color: #dfd2bd;
}
.map-layout {
  display: grid;
  grid-template-columns: 1fr 235px;
  gap: 24px;
}
.map-image {
  position: relative;
  align-self: start;
  border-radius: 18px;
  overflow: hidden;
  background: #d2e7e9;
}
.map-image img {
  width: 100%;
  display: block;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 29px;
  height: 29px;
  background: #fff9e9;
  border: 2px solid #88a884;
  box-shadow: 0 2px 10px #33492b38;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.map-pin.selected {
  background: #476f56;
  color: #fff4d3;
  border-color: #fff1cd;
}
.destination-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.destination-list button {
  font-size: 11px;
  padding: 10px 12px;
  text-align: left;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.destination-list button.selected {
  background: #e7eedd;
}
.map-selected {
  border-top: 1px solid #dce4d0;
  padding-top: 16px;
  margin-top: 16px;
}
.map-selected h3 {
  font-size: 17px;
  margin: 10px 0;
}
.map-selected p {
  font-size: 11px;
  color: #819075;
}
.map-selected .primary {
  width: 100%;
  font-size: 11px;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e4e9d9;
  font-size: 13px;
}
.toggle-row small {
  display: block;
  font-size: 10px;
  color: #8c987f;
  margin-top: 6px;
}
.toggle-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #628b64;
}
.toggle-row input[type="range"] {
  width: 140px;
  padding: 0;
  accent-color: #6b966a;
}
.settings-keys {
  font-size: 11px;
  line-height: 2;
  color: #7a8b70;
  background: #edf1e4;
  border-radius: 12px;
  padding: 16px;
  margin-top: 18px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.menu-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 10px;
  background: #edf2e4;
  border-radius: 15px;
  font-size: 11px;
}
.menu-grid svg {
  color: #71956d;
}
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.swatch {
  width: 42px;
  height: 42px;
  border: 3px solid white;
  outline: 1px solid #d5dec9;
  border-radius: 50%;
}
.swatch.selected {
  outline: 3px solid #76956a;
}
#touch-controls {
  position: fixed;
  bottom: 88px;
  left: 30px;
  right: 30px;
  z-index: 5;
  pointer-events: none;
  display: none;
  justify-content: space-between;
  align-items: end;
}
#touch-controls > * {
  pointer-events: auto;
}
#joystick {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #fff8;
  background: #f6faec55;
  display: grid;
  place-items: center;
  touch-action: none;
}
#joystick span {
  width: 38px;
  height: 38px;
  background: #fff8e9b3;
  border: 1px solid #fff;
  border-radius: 50%;
  pointer-events: none;
}
#jump {
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background: #fff8e9e6;
  border: 1px solid white;
  font-size: 25px;
}
.server-error {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #e8efe2;
  padding: 40px;
}
.server-error p {
  max-width: 500px;
  font-size: 15px;
  line-height: 1.9;
}
.small-note {
  font-size: 10px;
  color: #93a086;
  line-height: 1.8;
}
.teacher-form {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.teacher-form h3 {
  font-size: 15px;
}
.link-code {
  font-family: monospace;
  letter-spacing: 5px;
  font-size: 24px;
  padding: 20px;
  background: #edf2e2;
  border-radius: 14px;
  text-align: center;
  margin: 20px 0;
}
.inline-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline-row > input {
  flex: 1;
}
.alert-inline {
  font-size: 11px;
  color: #a57846;
  margin-top: 12px;
}
@media (pointer: coarse) {
  body[data-screen="play"] #touch-controls {
    display: flex;
  }
  .camera-actions {
    bottom: 200px;
  }
  #interact {
    bottom: 89px;
    max-width: calc(100% - 190px);
    font-size: 10px;
    padding: 8px;
  }
  #interact kbd {
    display: none;
  }
}
@media (max-width: 700px) {
  .topbar {
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 9px;
  }
  .brand {
    padding: 8px 11px 8px 8px;
    gap: 7px;
    border-radius: 15px;
  }
  .brandmark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 25px;
  }
  .brand strong {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .brand small {
    font-size: 5px;
    letter-spacing: 0.65px;
    margin-top: 4px;
  }
  #hud {
    gap: 6px;
  }
  .profile-chip {
    padding: 6px;
  }
  .profile-chip .profile-name,
  .profile-chip small {
    display: none;
  }
  .currency {
    padding: 8px 9px;
    gap: 5px;
  }
  .currency small {
    display: none;
  }
  .currency b {
    font-size: 13px;
  }
  .currency svg {
    width: 15px;
  }
  .topbar .circle {
    width: 35px;
    height: 35px;
  }
  .welcome-account {
    font-size: 10px;
    padding: 11px 13px;
  }
  .welcome-account span {
    margin-left: 7px;
  }
  .welcome {
    left: 16px;
    bottom: 24px;
    top: auto;
    transform: none;
    width: calc(100% - 32px);
    padding: 20px 22px;
    border-radius: 22px;
  }
  .welcome h1 {
    font-size: 30px;
    margin: 12px 0;
  }
  .welcome p {
    font-size: 11px;
    margin: 0 0 17px;
  }
  .welcome-foot {
    display: none;
  }
  .build-tag {
    margin-top: 14px;
    font-size: 6px;
  }
  .welcome .eyebrow {
    font-size: 8px;
  }
  .quest-card {
    left: 12px;
    top: 78px;
    width: 185px;
    padding: 12px;
    border-radius: 14px;
  }
  .quest-card h3 {
    font-size: 11px;
    line-height: 1.5;
  }
  .quest-card p {
    font-size: 9px;
  }
  .quest-card .eyebrow {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  #mini-map {
    right: 12px;
    top: 79px;
    width: 91px;
    border-radius: 12px;
    padding: 4px;
  }
  #mini-map span {
    font-size: 4.5px;
    padding: 5px 3px 2px;
  }
  #mini-map img {
    border-radius: 8px;
  }
  #playbar {
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    gap: 10px;
  }
  .location {
    font-size: 8px;
    padding: 9px 11px;
  }
  .mode-note {
    display: none;
  }
  .quick-actions {
    gap: 5px;
  }
  .quick-actions .circle {
    width: 34px;
    height: 34px;
  }
  .quick-actions svg {
    width: 15px;
  }
  .camera-actions {
    right: 14px;
    bottom: 155px;
  }
  .room-card {
    left: 12px;
    top: 80px;
    width: 190px;
    padding: 14px;
  }
  .room-card h2 {
    font-size: 21px;
  }
  .room-card p {
    font-size: 10px;
  }
  .room-card .primary {
    padding: 10px 8px;
    font-size: 10px;
  }
  #modal-layer {
    padding: 12px;
  }
  #modal {
    padding: 26px 21px;
    border-radius: 21px;
    max-height: calc(100dvh - 24px);
  }
  h2.modal-title {
    font-size: 28px;
  }
  .subtext {
    font-size: 11px;
  }
  .cards {
    gap: 9px;
  }
  .card {
    padding: 13px;
  }
  .card h3 {
    font-size: 12px;
  }
  .card p {
    font-size: 10px;
  }
  .map-layout {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .destination-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
  }
  .destination-list button {
    font-size: 10px;
    padding: 8px;
  }
  .map-selected {
    padding-top: 9px;
    margin-top: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .question {
    font-size: 18px;
  }
  .answer {
    font-size: 12px;
    padding: 12px;
  }
  .answer.selected {
    padding: 11px;
  }
  .lesson-visual {
    font-size: 27px;
    letter-spacing: 4px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    gap: 7px;
  }
  .stat {
    padding: 13px 7px;
  }
  .stat b {
    font-size: 20px;
  }
  #toast {
    top: 80px;
    width: max-content;
    max-width: calc(100% - 24px);
    font-size: 11px;
    padding: 12px 16px;
  }
  .bins button {
    font-size: 10px;
    padding: 17px 5px;
  }
  #interact {
    max-width: calc(100% - 50px);
    bottom: 72px;
    font-size: 10px;
  }
  .place-label {
    width: 24px;
    height: 24px;
  }
  .place-label svg {
    width: 11px;
  }
  body[data-screen="welcome"] .milo-tag {
    display: none;
  }
}
@media (max-height: 570px) and (min-width: 701px) {
  .welcome {
    top: 55%;
    padding: 22px;
    width: 310px;
  }
  .welcome h1 {
    font-size: 30px;
  }
  .welcome-foot {
    display: none;
  }
  .quest-card {
    top: 90px;
  }
  .room-card {
    top: 90px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

body[data-screen="dashboard"] #game,
body[data-screen="dashboard"] #milo-tag,
body[data-screen="dashboard"] #player-tag,
body[data-screen="dashboard"] #interact {
  display: none !important;
}
body[data-screen="dashboard"] {
  background: #eef1e7;
}
body[data-screen="dashboard"] #modal-layer {
  background: transparent;
  backdrop-filter: none;
  padding-top: 100px;
}
body[data-screen="dashboard"] #modal {
  box-shadow: 0 10px 45px #344f3512;
}

/* Overview is for inspecting the actual mesh composition, with the learning HUD tucked away. */
body[data-view="overview"] #quest-card,
body[data-view="overview"] #mini-map {
  visibility: hidden;
}

.interior-location {
  color: #477973;
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0;
}
.interior-picker {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
.interior-picker label {
  font-size: 12px;
  color: #5a746a;
}
.interior-picker select {
  width: 100%;
  padding: 9px;
  border: 1px solid #ced8c7;
  border-radius: 8px;
  background: #fffaf0;
  color: #355e55;
}
