@font-face {
  font-family: ArcadeEmoji;
  src: url("../assets/arcade-emoji.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+2000-2BFF, U+1F000-1FAFF;
}
:root {
  font-family: "Trebuchet MS", ArcadeEmoji, system-ui, sans-serif;
  color: #35504c;
  background: #eef3ed;
  --ink: #35504c;
  --muted: #6c8075;
  --green: #3b806a;
  --line: #dce5db;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0 28px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #bc913f;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
}
button:hover:not(:disabled) {
  filter: brightness(1.04);
}
[hidden] {
  display: none !important;
}
.app-shell {
  max-width: 1440px;
  margin: auto;
}
.main-header {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 98px;
}
.back {
  color: #687b70;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-icon {
  font-size: 31px;
  color: #6c977e;
}
.brand h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -1.3px;
  font-weight: 900;
  line-height: 1.1;
}
.brand h1 span {
  display: inline-block;
  font-size: 10px;
  color: #7b915f;
  background: #e1e9d9;
  letter-spacing: 1px;
  border-radius: 6px;
  padding: 5px 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.brand p {
  font-size: 8px;
  letter-spacing: 2.2px;
  color: #75876c;
  font-weight: 700;
  margin: 7px 0 0;
}
.header-buttons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}
.icon-button {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  border: 1px solid #d9e2d6;
  background: #f8fbf5;
  color: #768568;
  font-weight: 800;
  font-size: 18px;
}
.primary {
  background: #3e806b;
  color: #fff;
  border: 0;
  border-bottom: 3px solid #306353;
  border-radius: 12px;
  min-height: 45px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 13px;
}
.dashboard {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  margin: 0 0 19px;
  border: 1px solid #dbe4d9;
  background: #fafcf6;
  border-radius: 18px;
  padding: 18px 0;
  box-shadow: 0 3px 8px #43593b04;
}
.dashboard > div {
  padding: 0 27px;
  border-left: 1px solid #e2e8dc;
}
.dashboard > div:first-child {
  border-left: 0;
}
.dashboard span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #7c8a70;
}
.dashboard strong {
  display: block;
  font-size: 25px;
  margin: 7px 0;
  color: #4d715a;
  letter-spacing: -0.6px;
}
.dashboard .balance strong {
  color: #b68a32;
  font-size: 29px;
}
.dashboard small {
  font-size: 10px;
  color: #74856b;
}
.dashboard .level-metric strong {
  font-size: 20px;
  margin: 10px 0;
}
.world-shell {
  height: min(70vw, 700px);
  min-height: 550px;
  position: relative;
  border: 1px solid #cbdacf;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: #c6dfe0;
  box-shadow: 0 6px 20px #3d563712;
}
.world-shell:fullscreen {
  width: 100vw;
  height: 100dvh;
  max-height: none;
  border-radius: 0;
  border: 0;
}
.world-shell:fullscreen .quest-card {
  top: 105px;
}
#viewport {
  position: absolute;
  inset: 0;
  touch-action: none;
  outline: none;
}
#viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.world-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.exit-home {
  position: absolute;
  z-index: 2;
  top: 86px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 15px;
  border: 2px solid #f7e5ad;
  border-bottom: 4px solid #936f39;
  border-radius: 14px;
  background: #fff8d9;
  color: #66502e;
  box-shadow: 0 5px 12px #29423b24;
  font-size: 13px;
  font-weight: 900;
}
.exit-home span:first-child {
  font-size: 20px;
}
.exit-home:hover:not(:disabled) {
  transform: translateY(-2px);
}
.place-marker {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -100%);
  border: 1px solid #ffffffc0;
  background: #fffdf3ed;
  color: #496552;
  padding: 7px 12px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 10px;
  box-shadow: 0 3px 8px #33553b20;
  white-space: nowrap;
  min-height: 32px;
}
.place-marker:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: calc(50% - 5px);
  width: 9px;
  height: 9px;
  background: #fffdf3;
  transform: rotate(45deg);
}
.place-marker.near {
  background: #f9e6b1;
  border-color: #ddc381;
}
.place-marker.near:after {
  background: #f9e6b1;
}
.world-top {
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.location-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffff4d9;
  backdrop-filter: blur(10px);
  padding: 12px 17px;
  border: 1px solid #ffffffaa;
  border-radius: 13px;
  box-shadow: 0 4px 10px #29423b0d;
}
.location-label b {
  font-size: 12px;
  display: block;
}
.location-label small {
  display: block;
  font-size: 9px;
  color: #7a8970;
  margin-top: 4px;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #6bac83;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #6bac831f;
}
.view-tools {
  display: flex;
  gap: 7px;
  pointer-events: auto;
}
.glass-button {
  width: 37px;
  height: 37px;
  border: 1px solid #ffffffaa;
  border-radius: 10px;
  background: #fffff4d9;
  color: #5b7466;
  font-size: 17px;
  backdrop-filter: blur(8px);
}
.quest-card {
  position: absolute;
  left: 20px;
  top: 99px;
  width: 208px;
  padding: 17px;
  background: #fffff1e5;
  backdrop-filter: blur(12px);
  border: 1px solid #ffffffb0;
  border-radius: 16px;
  box-shadow: 0 4px 10px #29423b08;
  pointer-events: none;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 900;
  color: #8e8c62;
}
.quest-card h2 {
  font-size: 16px;
  color: #536b50;
  letter-spacing: -0.4px;
  margin: 10px 0 7px;
}
.quest-card p {
  font-size: 10px;
  line-height: 1.6;
  color: #71826a;
  margin: 0 0 14px;
}
.goal-track {
  height: 5px;
  border-radius: 10px;
  overflow: hidden;
  background: #e1e5ce;
}
.goal-track div {
  height: 100%;
  width: 0;
  background: #c5a353;
  transition: width 0.4s;
}
.goal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  font-size: 10px;
  color: #85916f;
}
.goal-bottom button {
  pointer-events: auto;
  border: 0;
  background: none;
  color: #927b41;
  font-size: 10px;
  font-weight: 800;
  padding: 7px 0;
}
.camera-switch {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  background: #fffff1ed;
  border: 1px solid #ffffffaa;
  border-radius: 11px;
  padding: 4px;
  backdrop-filter: blur(8px);
  gap: 3px;
}
.camera-switch button {
  border: 0;
  background: transparent;
  padding: 10px 13px;
  border-radius: 8px;
  color: #7c8d73;
  font-size: 10px;
  font-weight: 800;
}
.camera-switch button.selected {
  background: #6a8f77;
  color: #fff;
}
.world-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #3d6452;
  background: #f9fff0d9;
  padding: 10px 16px;
  border: 1px solid #ffffffa0;
  backdrop-filter: blur(8px);
  border-radius: 24px;
  font-size: 10px;
  white-space: nowrap;
  max-width: 47%;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.control-pad {
  position: absolute;
  bottom: 72px;
  left: 23px;
  display: grid;
  grid-template-columns: repeat(3, 43px);
  grid-template-rows: repeat(2, 40px);
  gap: 5px;
  opacity: 0.85;
}
.control-pad button {
  border: 1px solid #ffffffb0;
  border-bottom-width: 3px;
  border-radius: 10px;
  background: #fffff0b8;
  color: #526f59;
  font-size: 22px;
  touch-action: none;
  user-select: none;
}
.control-pad button:active,
.control-pad button.pressed {
  background: #73987d;
  color: white;
}
.control-pad .up {
  grid-column: 2;
  grid-row: 1;
}
.control-pad .left {
  grid-column: 1;
  grid-row: 2;
}
.control-pad .down {
  grid-column: 2;
  grid-row: 2;
}
.control-pad .right {
  grid-column: 3;
  grid-row: 2;
}
.action-area {
  position: absolute;
  right: 20px;
  bottom: 81px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  max-width: 275px;
}
.interact-button {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #3d7b64f5;
  color: #fff;
  border: 1px solid #79a991;
  border-bottom: 4px solid #2d614f;
  border-radius: 15px;
  padding: 14px 18px;
  box-shadow: 0 6px 12px #274c4124;
  text-align: left;
}
.interact-button > span {
  font-size: 25px;
  font-weight: 800;
  color: #dfebc2;
}
.interact-button b {
  display: block;
  font-size: 13px;
}
.interact-button small {
  display: block;
  font-size: 9px;
  color: #d1e3cd;
  line-height: 1.5;
  margin-top: 5px;
}
.interact-button kbd {
  background: #ffffff1c;
  padding: 5px;
  border-radius: 5px;
  font-size: 10px;
}
.drive-button {
  border: 1px solid #fff9c9;
  background: #f9ebbe;
  color: #867136;
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  font-weight: 800;
}
.loading,
.paused-overlay,
.fallback {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #e4efe2ed;
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 25px;
}
.loading h2,
.paused-overlay h2,
.fallback h2 {
  font-size: 26px;
  letter-spacing: -0.6px;
  color: #4e7457;
  margin: 15px 0;
}
.loading p,
.paused-overlay p,
.fallback p {
  font-size: 13px;
  line-height: 1.7;
  color: #6e866b;
  max-width: 400px;
}
.loading-city,
.paused-overlay > span,
.fallback > span {
  font-size: 65px;
  color: #88aa80;
}
.loading-city {
  animation: float 2s ease-in-out infinite;
}
.paused-overlay .primary,
.fallback .primary {
  margin-top: 15px;
}
.destinations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 17px 0;
}
.destinations button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dce5d7;
  border-radius: 14px;
  background: #fafcf6;
  text-align: left;
  color: #59745b;
}
.destinations button > span {
  display: grid;
  place-items: center;
  background: #e7eee0;
  border-radius: 11px;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  font-size: 22px;
  color: #85a17b;
}
.destinations b {
  font-size: 12px;
  display: block;
}
.destinations small {
  font-size: 9px;
  color: #77876b;
  display: block;
  margin-top: 5px;
}
.destinations i {
  margin-left: auto;
  font-size: 17px;
  font-style: normal;
  color: #91a47d;
}
.bottom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 2px 2px 13px;
  border-bottom: 1px solid #dce5d7;
}
.bottom-strip p {
  font-size: 10px;
  color: #7d8a71;
  line-height: 1.6;
  margin: 0;
}
kbd {
  font-family: inherit;
  font-size: 9px;
}
.bottom-strip kbd {
  padding: 3px 5px;
  border: 1px solid #d7e1d1;
  border-radius: 5px;
}
.rent-status {
  font-size: 10px;
  line-height: 1.5;
  color: #7d8a71;
  border: 0;
  background: transparent;
  text-align: right;
  padding: 8px;
}
.rent-status.due {
  background: #fff0c7;
  border-radius: 8px;
  color: #937529;
  font-weight: 800;
}
.save-status {
  font-size: 10px;
  color: #88967c;
  margin: 18px 0 24px;
  line-height: 1.6;
}
.google-publish-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid #cfdcc8;
  border-radius: 16px;
  background: #f8fbf3;
}
.google-publish-card span {
  color: #718567;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.3px;
}
.google-publish-card h2 {
  margin: 4px 0;
  color: #416852;
  font-size: 18px;
}
.google-publish-card p,
.google-publish-note {
  margin: 0;
  color: #697d6c;
  font-size: 12px;
  line-height: 1.45;
}
.google-publish-card button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 15px;
  border: 0;
  border-bottom: 3px solid #306353;
  border-radius: 11px;
  background: #3e806b;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.google-publish-note {
  margin: 14px 0;
}
.dialog {
  border: 1px solid #e1e7d8;
  border-radius: 25px;
  padding: 32px;
  background: #fbfcf6;
  color: #435f4d;
  box-shadow: 0 20px 90px #163b3440;
  max-height: 90dvh;
  overflow: auto;
  width: min(500px, calc(100% - 28px));
}
.dialog::backdrop {
  background: #294f46a1;
  backdrop-filter: blur(7px);
}
.dialog h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 12px 0;
}
.dialog p {
  font-size: 13px;
  line-height: 1.8;
  color: #718468;
}
.dialog-close {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dfe7d5;
  border-radius: 50%;
  background: #ffffffa8;
  color: #7e9474;
  font-size: 16px;
}
.dialog-illustration {
  display: block;
  font-size: 51px;
  margin: 10px 0 21px;
}
.challenge-dialog {
  text-align: center;
}
.paycheck {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #f4ecd0;
  border: 1px solid #e7dcb5;
  padding: 9px 17px;
  border-radius: 20px;
  color: #a09055;
  font-size: 11px;
  margin: 4px 0;
}
.paycheck b {
  font-size: 16px;
  color: #a38336;
}
.question {
  display: block;
  font-size: 43px;
  letter-spacing: -1px;
  color: #5b7757;
  font-weight: 900;
  margin: 23px 0;
}
.answer-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.answer-choices button {
  font-size: 25px;
  font-weight: 900;
  background: #edf3e6;
  color: #78916b;
  border: 1px solid #d9e3cf;
  border-bottom: 4px solid #cad8be;
  border-radius: 13px;
  min-height: 65px;
}
.answer-choices button.correct {
  background: #d8eccb;
  color: #4c793d;
  border-color: #a7c394;
}
.answer-choices button.wrong {
  background: #fff0d6;
  color: #a98945;
  border-color: #e5c78e;
}
.answer-choices button:disabled {
  opacity: 0.75;
}
.feedback {
  min-height: 27px;
  margin-bottom: 8px !important;
  font-weight: 700;
  font-size: 12px !important;
}
.feedback.success {
  color: #50834f;
}
.text-button {
  font-size: 12px;
  color: #9b8346;
  border: 0;
  background: transparent;
  padding: 11px;
  font-weight: 800;
  min-height: 40px;
}
.hint-text {
  font-size: 12px !important;
  padding: 12px;
  background: #faf1d8;
  border-radius: 10px;
  color: #988457 !important;
}
.answer-input {
  width: 100%;
  min-height: 55px;
  border: 2px solid #d0dfc5;
  border-radius: 12px;
  background: white;
  color: #4c6e49;
  font-size: 24px;
  font-weight: 800;
  padding: 12px;
  text-align: center;
  text-transform: uppercase;
}
#answer-form label {
  display: block;
  font-size: 11px;
  color: #7b8b6e;
  margin: 15px 0 9px;
}
#answer-form .primary {
  margin-top: 14px;
  width: 100%;
}
.next-job {
  width: 100%;
  margin-top: 10px;
}
.shop-dialog {
  width: min(800px, calc(100% - 28px));
}
.dialog-header {
  padding-right: 35px;
}
.dialog-header h2 {
  margin-bottom: 5px;
}
.shop-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 10px 0 22px;
}
.shop-intro strong {
  font-size: 22px;
  color: #ad8b3e;
  white-space: nowrap;
  background: #f8efd4;
  border: 1px solid #e9dfbd;
  border-radius: 12px;
  padding: 12px 17px;
}
.shop-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.item {
  position: relative;
  border: 1px solid #e0e6d6;
  background: #fffef8;
  border-radius: 17px;
  padding: 19px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.item.owned {
  background: #f1f7e8;
  border-color: #cbdcb7;
}
.item-icon {
  font-size: 33px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  background: #edf2e5;
  border-radius: 15px;
  margin-bottom: 13px;
}
.item h3 {
  font-size: 16px;
  margin: 0 0 7px;
  color: #5b7553;
}
.item p {
  font-size: 11px;
  line-height: 1.8;
  margin: 0 0 19px;
  flex: 1;
}
.buy {
  width: 100%;
  background: #e5eedb;
  border: 1px solid #d1ddc2;
  border-bottom-width: 3px;
  border-radius: 10px;
  color: #668352;
  font-weight: 800;
  font-size: 12px;
  padding: 12px;
  min-height: 43px;
}
.buy:disabled {
  background: #eef1e7;
  color: #8b957e;
  border-color: #dfe6d5;
}
.item.owned .buy {
  color: #68884e;
  background: #deebcd;
}
.shop-message {
  min-height: 25px;
  font-size: 12px !important;
  font-weight: 700;
}
.small-dialog {
  text-align: center;
  width: min(410px, calc(100% - 28px));
}
.small-dialog .primary {
  width: 100%;
}
.swatches {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin: 28px 0;
}
.swatches button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 5px solid #fbfcf6;
  outline: 1px solid #d3dfcb;
  background: var(--shirt);
}
.swatches button[aria-pressed="true"] {
  outline: 3px solid #748763;
}
.character-note {
  font-size: 11px !important;
}
.help-dialog {
  width: min(560px, calc(100% - 28px));
}
.help-steps {
  margin: 22px 0;
}
.help-steps p {
  border: 1px solid #e1e8d7;
  border-radius: 13px;
  background: #f6f9ed;
  padding: 16px;
}
.help-steps b {
  display: block;
  color: #557449;
  margin-bottom: 5px;
}
.reset-button {
  border: 1px solid #e8d7c8;
  color: #a57859;
  background: #fbf2e7;
  border-radius: 10px;
  padding: 12px;
  font-size: 11px;
  margin-top: 10px;
}
.toast {
  position: fixed;
  z-index: 30;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff9e8;
  border: 1px solid #e3d8b2;
  border-radius: 14px;
  box-shadow: 0 10px 35px #36523526;
  padding: 15px 24px;
  max-width: calc(100% - 32px);
  color: #8a773e;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.gain {
  position: absolute;
  left: 50%;
  top: 45%;
  font-size: 28px;
  font-weight: 900;
  color: #efc05f;
  text-shadow: 0 2px 0 #fff8dc;
  pointer-events: none;
  animation: gain 1.5s ease-out forwards;
  z-index: 4;
}
.night .world-caption {
  background: #273c50df;
  color: #e5eccb;
}
.night .location-label,
.night .quest-card,
.night .camera-switch {
  background: #f8fbe7e8;
}
.world-shell.touching {
  cursor: grabbing;
}
@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}
@keyframes gain {
  to {
    transform: translateY(-100px);
    opacity: 0;
  }
}
@media (min-width: 1500px) {
  .world-shell {
    height: 720px;
  }
}
@media (max-width: 1050px) {
  body {
    padding: 0 20px;
  }
  .dashboard > div {
    padding: 0 18px;
  }
  .world-shell {
    min-height: 550px;
    height: 64vw;
  }
  .quest-card {
    width: 185px;
    padding: 15px;
  }
  .world-caption {
    left: 25px;
    bottom: 21px;
    transform: none;
    max-width: 49%;
    font-size: 9px;
  }
  .destinations button {
    padding: 12px;
    gap: 8px;
  }
  .destinations small {
    font-size: 8px;
  }
  .destinations button > span {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .main-header {
    gap: 18px;
  }
  .brand h1 {
    font-size: 23px;
  }
}
@media (max-width: 720px) {
  body {
    padding: 0 14px;
  }
  .main-header {
    min-height: 80px;
    gap: 13px;
  }
  .back span {
    display: none;
  }
  .brand-icon {
    font-size: 25px;
  }
  .brand {
    gap: 7px;
  }
  .brand h1 {
    font-size: 20px;
    letter-spacing: -1px;
  }
  .brand h1 span {
    font-size: 8px;
    margin-left: 5px;
    padding: 4px;
  }
  .brand p {
    font-size: 6px;
    letter-spacing: 1.6px;
  }
  .header-buttons {
    gap: 6px;
  }
  .icon-button {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  .header-buttons .primary {
    padding: 9px 12px;
    min-height: 37px;
    font-size: 13px;
  }
  .header-buttons .primary span {
    display: none;
  }
  .dashboard {
    grid-template-columns: repeat(3, 1fr);
    padding: 14px 0;
    margin-bottom: 14px;
    border-radius: 15px;
  }
  .dashboard > div {
    padding: 0 13px;
  }
  .dashboard .level-metric {
    display: none;
  }
  .dashboard span {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .dashboard strong,
  .dashboard .balance strong {
    font-size: 23px;
    margin: 8px 0 5px;
  }
  .dashboard small {
    font-size: 8px;
    line-height: 1.5;
    display: block;
  }
  .world-shell {
    height: calc(100dvh - 230px);
    min-height: 530px;
    max-height: 720px;
    border-radius: 17px;
  }
  .world-top {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .location-label {
    padding: 9px 12px;
    border-radius: 10px;
    gap: 8px;
  }
  .location-label b {
    font-size: 10px;
  }
  .location-label small {
    font-size: 8px;
  }
  .view-tools {
    gap: 5px;
  }
  .glass-button {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .quest-card {
    top: 78px;
    left: 12px;
    width: 155px;
    padding: 13px;
  }
  .quest-card .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .quest-card h2 {
    font-size: 13px;
    margin: 8px 0;
  }
  .quest-card p {
    display: none;
  }
  .goal-bottom {
    font-size: 9px;
    gap: 6px;
  }
  .goal-bottom button {
    font-size: 8px;
  }
  .camera-switch {
    top: 79px;
    right: 12px;
    bottom: auto;
    flex-direction: column;
    padding: 3px;
    gap: 2px;
    border-radius: 10px;
  }
  .camera-switch button {
    font-size: 9px;
    padding: 9px 10px;
    min-width: 66px;
  }
  .control-pad {
    left: 14px;
    bottom: 51px;
    grid-template-columns: repeat(3, 39px);
    grid-template-rows: repeat(2, 40px);
    gap: 4px;
    opacity: 0.95;
  }
  .action-area {
    right: 12px;
    bottom: 52px;
    width: calc(100% - 157px);
    max-width: 215px;
    gap: 6px;
  }
  .interact-button {
    padding: 11px 12px;
    gap: 9px;
    border-radius: 13px;
    min-height: 73px;
  }
  .interact-button > span {
    font-size: 21px;
  }
  .interact-button b {
    font-size: 11px;
  }
  .interact-button small {
    font-size: 8px;
  }
  .interact-button kbd {
    display: none;
  }
  .world-caption {
    bottom: 11px;
    left: 12px;
    right: 12px;
    max-width: none;
    font-size: 9px;
    text-align: center;
    padding: 9px 12px;
  }
  .drive-button {
    padding: 9px;
    font-size: 10px;
  }
  .destinations {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin: 13px 0;
  }
  .destinations button {
    padding: 12px;
  }
  .destinations b {
    font-size: 11px;
  }
  .destinations small {
    font-size: 9px;
  }
  .destinations i {
    font-size: 15px;
  }
  .destinations button > span {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
  }
  .bottom-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .bottom-strip p {
    font-size: 9px;
    line-height: 1.8;
  }
  .rent-status {
    text-align: left;
    padding: 7px 0;
    font-size: 9px;
  }
  .save-status {
    font-size: 9px;
    margin: 14px 0 20px;
  }
  .google-publish-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    padding: 15px;
  }
  .google-publish-card button {
    width: 100%;
  }
  .dialog {
    padding: 27px 20px;
    border-radius: 20px;
  }
  .dialog h2 {
    font-size: 24px;
  }
  .dialog p {
    font-size: 12px;
  }
  .dialog-illustration {
    font-size: 42px;
    margin: 8px 0 17px;
  }
  .dialog-header .eyebrow {
    font-size: 7px;
  }
  .shop-items {
    gap: 10px;
  }
  .item {
    padding: 14px;
  }
  .item h3 {
    font-size: 13px;
  }
  .item p {
    font-size: 10px;
  }
  .item-icon {
    width: 51px;
    height: 51px;
    font-size: 29px;
  }
  .buy {
    font-size: 10px;
    padding: 10px 8px;
    min-height: 43px;
  }
  .shop-intro {
    gap: 10px;
    margin-bottom: 17px;
  }
  .shop-intro p {
    font-size: 11px;
  }
  .shop-intro strong {
    font-size: 18px;
    padding: 10px 13px;
  }
  .question {
    font-size: 37px;
  }
  .toast {
    font-size: 12px;
    padding: 13px 18px;
  }
  .place-marker {
    font-size: 8px;
    padding: 6px 9px;
    min-height: 27px;
  }
  .paused-overlay h2 {
    font-size: 23px;
  }
}
@media (max-width: 370px) {
  body {
    padding: 0 10px;
  }
  .main-header {
    gap: 9px;
  }
  .brand h1 {
    font-size: 18px;
  }
  .brand-icon {
    display: none;
  }
  .brand p {
    font-size: 6px;
  }
  .icon-button {
    width: 32px;
    height: 32px;
  }
  .dashboard > div {
    padding: 0 10px;
  }
  .dashboard span {
    font-size: 6px;
  }
  .dashboard strong,
  .dashboard .balance strong {
    font-size: 20px;
  }
  .action-area {
    width: calc(100% - 147px);
  }
  .control-pad {
    left: 10px;
    grid-template-columns: repeat(3, 36px);
  }
  .interact-button {
    padding: 10px 8px;
    gap: 6px;
  }
  .interact-button > span {
    font-size: 16px;
  }
  .interact-button small {
    font-size: 7px;
  }
  .location-label {
    padding: 9px;
  }
  .quest-card {
    width: 147px;
  }
  .world-shell {
    min-height: 500px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .gain {
    opacity: 1;
  }
}
/* Martín's reading adventure, built on the original city. */
.learning-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: #fff9e9;
  border: 1px solid #eadfc0;
  border-radius: 20px;
  margin: 0 0 18px;
  box-shadow: 0 5px 20px #5c734809;
}
.learning-bar > div {
  flex: 1;
  min-width: 170px;
}
.learning-bar b {
  display: block;
  font-size: 22px;
  color: #355c50;
}
.learning-bar span:not(.reading-progress) {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}
.learning-bar button,
.learning-bar select {
  border: 1px solid #cfdccb;
  border-radius: 12px;
  background: #fffdf7;
  color: #34574c;
  padding: 12px;
  min-height: 46px;
  font-size: 16px;
  font-weight: bold;
}
.learning-bar .primary {
  background: #367d65;
  color: white;
}
.learning-bar label {
  font-size: 13px;
  display: grid;
  gap: 4px;
}
.reading-progress {
  font-size: 14px;
  color: #786033;
  white-space: nowrap;
}
.reading-dialog {
  width: min(900px, calc(100vw - 24px));
  max-width: 900px;
  padding: 30px;
  background: #fffdf6;
  overflow-y: auto;
  max-height: 92dvh;
}
.reading-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 40px;
  gap: 8px;
}
.reading-top #read-wallet {
  background: #ffecac;
  border: 1px solid #e9d588;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 24px;
  font-weight: bold;
  color: #655223;
}
.reading-dialog h2 {
  font-size: clamp(25px, 4vw, 36px);
  margin: 16px 0 6px;
}
.reading-sub {
  margin: 0 0 16px;
  font-size: 16px;
}
.customer {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #eef3e8;
  border: 1px solid #dce7d3;
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 22px;
}
.customer > img {
  border-radius: 50%;
  flex-shrink: 0;
}
.customer > div {
  min-width: 0;
  flex: 1;
}
.customer small {
  font-size: 11px;
  letter-spacing: 2px;
  color: #677c68;
}
.read-line {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin: 7px 0;
}
.spoken-line {
  font-size: 24px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.read-word {
  border-radius: 6px;
  padding: 2px 1px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.read-word.speaking {
  background: #ffdc64;
  color: #302e18;
  box-shadow: 0 2px 0 #bea03b;
}
.reading-dialog button {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #cbdaca;
  background: white;
  color: #315a4c;
  padding: 10px 14px;
  font-size: 17px;
  font-weight: bold;
}
.reading-dialog .primary {
  background: #357e65;
  color: white;
  border-color: #357e65;
}
.reading-dialog button:disabled {
  opacity: 0.62;
  cursor: default;
}
.reading-dialog .listen {
  font-size: 14px;
  flex-shrink: 0;
  padding: 8px 10px;
  min-height: 44px;
  border-color: #c3d2bc;
  background: #fffef9;
}
.shop-awning {
  display: flex;
  height: 28px;
  margin: 0 4px;
}
.shop-awning i {
  flex: 1;
  border-radius: 4px 4px 10px 10px;
  background: #599c7e;
  box-shadow: 0 4px 0 #355f3b19;
}
.shop-awning i:nth-child(even) {
  background: #f4d789;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.shelf {
  background: #f0e9d9;
  padding: 14px;
  border-bottom: 8px solid #bb996d;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 0 #96795218;
}
.product-grid article {
  min-width: 0;
}
.product-grid > button,
.product-grid article > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  justify-content: center;
  width: 100%;
  padding: 8px 10px 12px;
  background: linear-gradient(155deg, #fffefb, #f8f6e9);
  border: 1px solid #dedbc5;
  box-shadow: 0 3px 0 #b6ac9020;
  min-height: 165px;
}
.product-grid img {
  width: 100px;
  height: 100px;
  transition: transform 0.18s;
}
.product-grid button:hover img {
  transform: translateY(-4px) rotate(-4deg);
}
.product-grid b {
  font-size: 19px;
  line-height: 1.3;
}
.product-grid small {
  font-size: 16px;
  display: block;
  margin-top: 3px;
  color: #6b7767;
}
.add-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #dfecd9;
  color: #3e7057;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 22px;
}
.product-listen {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 5px;
}
.product-listen .spoken-line {
  display: none;
}
.product-listen .read-line {
  margin: 0;
  display: block;
}
.product-listen .listen {
  font-size: 12px;
  padding: 4px 7px;
  min-height: 40px;
}
.basket {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  background: #fff5d5;
  border: 2px dashed #d7bd79;
  border-radius: 16px;
  padding: 14px;
  margin: 18px 0 12px;
}
.basket > div {
  min-width: 0;
}
.basket b {
  font-size: 19px;
}
#basket-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 16px;
}
.basket-product {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.basket-product img {
  width: 32px;
  height: 32px;
}
.basket-product b {
  font-size: 14px;
}
.basket-product button {
  padding: 2px 12px;
}
.deliver {
  width: 100%;
  font-size: 20px !important;
}
.read-feedback {
  background: #eaf3e7;
  padding: 15px;
  border-radius: 14px;
  line-height: 1.6;
  font-size: 19px;
  margin: 16px 0 10px;
  min-height: 60px;
}
.reading-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.help-glow {
  outline: 4px solid #dfb541 !important;
}
.story-art {
  height: 160px;
  background: linear-gradient(#d3e9eb 0 68%, #b8ce92 68%);
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 30px;
  overflow: hidden;
}
.story-art > span {
  align-self: flex-start;
  color: #ebbb52;
  font-size: 50px;
}
.story-art .story-house {
  align-self: flex-end;
  font-size: 140px;
  line-height: 1;
  color: #bc825b;
}
.story-text {
  padding: 12px 0;
}
.story-reading-tools,
#story-steps:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.story-reading-tools button {
  min-height: 44px;
}
#story-step-status {
  font-weight: 700;
}
.story-question {
  padding: 8px 14px;
  background: #edf3e6;
  border-radius: 16px;
  margin-bottom: 15px;
}
.upgrade-art {
  font-size: 64px;
  line-height: 1.6;
  display: block;
  filter: drop-shadow(0 7px 4px #355a4528);
}
.coin-burst {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.coin-burst i {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 30px;
  color: #d89e22;
  animation: coin-fly 1.3s ease-out forwards;
  --angle: calc(var(--i) * 30deg);
}
@keyframes coin-fly {
  from {
    transform: rotate(var(--angle)) translateY(0);
    opacity: 1;
  }
  to {
    transform: rotate(var(--angle)) translateY(-230px) rotate(120deg);
    opacity: 0;
  }
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .learning-bar {
    padding: 14px;
    gap: 9px;
  }
  .learning-bar > div {
    flex-basis: 100%;
  }
  .learning-bar label {
    flex: 1;
  }
  .learning-bar #open-reading {
    flex: 1;
    font-size: 15px;
  }
  .learning-bar #open-story,
  .learning-bar #enter-home {
    font-size: 14px;
  }
  .reading-dialog {
    padding: 18px 13px;
  }
  .reading-top {
    padding-right: 30px;
  }
  .reading-top .eyebrow {
    font-size: 10px;
  }
  .reading-top #read-wallet {
    font-size: 20px;
    padding: 5px 10px;
  }
  .customer {
    padding: 12px;
    gap: 10px;
  }
  .customer > img {
    width: 52px;
    height: 52px;
  }
  .read-line {
    flex-wrap: wrap;
    gap: 4px;
  }
  .spoken-line {
    font-size: 21px;
    line-height: 1.65;
  }
  .customer .spoken-line {
    font-size: 22px;
  }
  .product-grid {
    gap: 7px;
  }
  .shelf {
    padding: 8px;
  }
  .product-grid article > button,
  .product-grid > button {
    min-height: 135px;
    padding: 5px;
  }
  .product-grid img {
    width: 74px;
    height: 74px;
  }
  .product-grid b {
    font-size: 16px;
  }
  .product-grid small {
    font-size: 14px;
  }
  .product-listen {
    flex-wrap: wrap;
  }
  .product-listen .listen {
    font-size: 11px;
    padding: 4px 5px;
  }
  .add-badge {
    width: 21px;
    height: 21px;
    font-size: 19px;
    right: 4px;
    top: 4px;
  }
  .read-feedback {
    font-size: 17px;
  }
  .story-art {
    gap: 12px;
    height: 125px;
  }
  .story-art .story-house {
    font-size: 90px;
  }
  .story-art img {
    width: 80px;
    height: 80px;
  }
  .reading-actions button {
    font-size: 15px;
  }
  .upgrade-art {
    font-size: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .coin-burst {
    display: none;
  }
  .product-grid img {
    transition: none;
  }
  .product-grid button:hover img {
    transform: none;
  }
}
.product-grid .spoken-line {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
}
.indoors .quest-card {
  display: none;
}
.reading-dialog .read-feedback {
  font-size: 19px;
  color: #365446;
}
.reading-dialog .reading-sub {
  font-size: 16px;
  color: #52674f;
}
.album-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff1c9;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0 20px;
}
.album-summary b {
  font-size: 24px;
}
.album-grid article {
  border: 1px solid #d9dfc9;
  background: #f7f6ea;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.album-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}
.crate-count {
  border-radius: 20px;
  background: #e7ecd8;
  padding: 5px 12px;
  font-size: 14px;
}
.word-progress {
  font-size: 13px;
  line-height: 1.6;
  display: grid;
  gap: 4px;
  flex: 1;
}
.word-progress > span > span {
  color: #397c64;
  white-space: nowrap;
}
.garage-view .quest-card,
.garage-view .control-pad,
.garage-view .world-labels {
  display: none;
}
.garage-view .world-caption {
  font-size: 14px;
}
@media (max-width: 600px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .album-grid article {
    padding: 9px;
  }
  .album-summary {
    gap: 10px;
    font-size: 15px;
  }
  .learning-bar #open-album,
  .learning-bar #view-car {
    font-size: 14px;
  }
}
.album-grid article > button {
  min-height: 46px;
  background: #367d65;
  color: #fff;
  padding: 10px;
  font-size: 16px;
  box-shadow: none;
}
.garage-view #drive {
  display: none;
}
.product-listen .listen {
  min-height: 44px;
}
.voice-speed {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  margin: 0 0 18px;
  color: #4a6553;
}
.voice-speed select {
  font: inherit;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ccd8bf;
  border-radius: 12px;
  background: #fffdf4;
  color: #355a4b;
}
.listen[aria-pressed="true"] {
  background: #ffedac !important;
  border-color: #bfa85f !important;
}
.story-panorama {
  position: relative;
  margin: 14px 0;
  border-radius: 20px;
  overflow: hidden;
  background: #d8e7d2;
}
.story-panorama > img {
  width: 100%;
  height: auto;
  display: block;
}
.story-panorama figcaption {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 12px;
  border-radius: 14px;
  background: #fffcf0ef;
  font-size: 14px;
  color: #405845;
}
.story-option-art {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}
.story-option-art img {
  width: clamp(36px, 6vw, 80px);
  height: auto;
}
.story-option-art:has(img:only-child) img {
  width: 100px;
}
.story-choices > button {
  min-height: 165px;
}
.story-choices .spoken-line {
  font-size: inherit;
}
@media (max-width: 600px) {
  .story-panorama {
    margin: 12px 0;
  }
  .story-panorama figcaption {
    top: 7px;
    left: 7px;
    font-size: 11px;
    padding: 4px 8px;
  }
  .voice-speed {
    font-size: 13px;
    gap: 6px;
  }
  .story-option-art {
    min-height: 84px;
  }
  .story-option-art:has(img:only-child) img {
    width: 72px;
  }
  .story-choices > button {
    min-height: 140px;
  }
  .story-option-art img {
    width: 36px;
  }
}
.home-explore {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px;
  background: #eef2e2;
  border-radius: 18px;
}
.home-explore button {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 125px;
  min-height: 54px;
  padding: 7px 14px;
  border: 1px solid #cad8bf;
  border-radius: 12px;
  background: #fffdf4;
  color: #35594a;
  font-size: 17px;
  font-weight: bold;
}
.home-explore img {
  object-fit: contain;
}
.home-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}
.home-choices img {
  width: 120px;
  height: 120px;
}
.home-question {
  padding: 15px;
  background: #edf3e6;
  border-radius: 16px;
}
.home-word-marker {
  background: #fffae7 !important;
  border: 2px solid #a9bf91 !important;
  font-size: 15px !important;
  min-height: 44px;
  white-space: nowrap;
  box-shadow: 0 4px 16px #334c3626;
}
.home-choices > button {
  min-height: 190px;
}
.home-choices .spoken-line {
  font-size: inherit;
}
@media (max-width: 600px) {
  .exit-home {
    top: 78px;
    left: 13px;
    min-height: 43px;
    padding: 8px 11px;
    font-size: 12px;
  }
  .home-explore {
    gap: 8px;
    padding: 9px;
  }
  .home-explore button {
    min-width: 110px;
    font-size: 15px;
    padding: 6px;
  }
  .home-word-marker {
    font-size: 12px !important;
    padding: 8px !important;
  }
  .home-choices img {
    width: 90px;
    height: 90px;
  }
  .home-choices > button {
    min-height: 155px;
  }
}

.save-tools { margin: 20px 0; padding: 16px; border-radius: 16px; background: #eef3ed; }
.save-tools button { margin: 4px; }
#load-recovery { max-width: 360px; padding: 12px; }
#load-recovery a { display: inline-block; padding: 12px; color: #205b50; }

/* A little red-car workshop, with real controls and readable instruments. */
#try-car { background: #a92131; color: #fff; border-color: #a92131; }
.vehicle-controls { margin: 0 0 16px; padding: 22px 24px 16px; border: 1px solid #303a4b; border-radius: 20px; background: linear-gradient(115deg,#151b27,#242d3d); color: #f3f4fa; box-shadow: 0 12px 30px #17213418; }
.vehicle-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.vehicle-kicker { color: #a7b2c4; font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.vehicle-heading h2 { font-size: 28px; letter-spacing: -.8px; margin: 6px 0 0; color: #fff; }
.vehicle-heading em { color: #ff6b70; font-style: normal; font-weight: 400; }
.vehicle-instruments { display: flex; align-items: center; gap: 23px; }
.vehicle-instruments > span:not(#car-status) { display: grid; gap: 3px; text-align: center; }
.vehicle-instruments strong { font: 600 25px ui-monospace, monospace; font-variant-numeric: tabular-nums; min-width: 52px; }
.vehicle-instruments small { color: #a6b3c6; letter-spacing: 2px; font-size: 9px; }
#car-status { font-size: 12px; color: #bdc6d4; }
[data-engine="on"] #car-status { color: #86e8bb; }
.vehicle-buttons { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.vehicle-buttons button { min-height: 46px; padding: 10px 6px; border: 1px solid #536075; background: #2d384b; color: #f5f6fc; border-radius: 11px; font-size: 12px; line-height: 1.35; box-shadow: none; }
.vehicle-buttons button:hover:not(:disabled) { background: #41516b; }
.vehicle-buttons button[aria-pressed="true"] { border-color: #97badb; background: #40546c; }
.vehicle-buttons .car-primary { background: #bf293b; border-color: #f05b65; }
.vehicle-buttons button:disabled { opacity: .48; cursor: default; }
.vehicle-buttons button:focus-visible { outline: 3px solid #fcd77a; outline-offset: 3px; }
.car-tip { font-size: 12px; color: #b7c2d2; margin: 13px 0 0; line-height: 1.5; }
.car-words { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 14px; border-top: 1px solid #526075; padding-top: 10px; }
.car-words p { margin: 0; font-size: 13px; line-height: 1.6; }
.car-words b { display: block; color: #ffd481; margin-bottom: 5px; }
.car-words span { color: #d1d9e6; }
.garage-view { background: #171e29; }
.garage-view .location-label { background: #283346e8; color: #fff; }
.garage-view .location-label small { color: #c2cfe0; }
.garage-view .world-caption { color: #f0f3f8; background: #253043e8; }
.driving-view .quest-card { display: none; }
@media(max-width:800px) {
 .vehicle-buttons { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .vehicle-controls { padding: 17px; }
 .vehicle-instruments { gap: 12px; }
 #car-status { max-width: 75px; line-height: 1.5; }
}
@media(max-width:480px) {
 .vehicle-heading { gap: 10px; flex-wrap: wrap; }
 .vehicle-heading h2 { font-size: 25px; }
 .vehicle-kicker { font-size: 8px; letter-spacing: 1px; }
 .vehicle-instruments { width: 100%; justify-content: space-between; }
 .vehicle-instruments strong { font-size: 20px; }
 #car-status { max-width: none; }
 .vehicle-buttons button { font-size: 11px; }
 .car-words { grid-template-columns: 1fr; }
 .garage-view .action-area { width: 190px; }
 .garage-view .camera-switch { flex-direction: row; top: 73px; left: 12px; right: auto; }
}

/* Playful neighbours: large touch controls, quiet hints and an untimed count. */
.animal-bar { margin: 0 0 18px; border: 1px solid #d2ddc0; border-radius: 20px; padding: 18px 22px 14px; background: linear-gradient(110deg,#f8f5df,#eaf2e7); }
.animal-intro { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.animal-intro > span { display:grid; place-items:center; font-size:29px; width:52px; height:52px; border-radius:16px; background:#fffdf3; }
.animal-intro h2 { color:#385b48; font-size:20px; letter-spacing:-.4px; margin:0 0 5px; }
.animal-intro p { color:#63755e; font-size:12px; margin:0; line-height:1.5; }
.animal-actions { display:flex; flex-wrap:wrap; gap:9px; }
.animal-actions button { min-height:44px; padding:10px 18px; border-radius:12px; background:#fffdf5; border:1px solid #b8c8a6; color:#395948; font-size:13px; box-shadow:none; }
.animal-actions #animal-play { background:#41775d; border-color:#41775d; color:#fff; }
#animal-status { margin:12px 0 0; font-size:12px; color:#516849; line-height:1.6; }
.animal-quiz { display:flex; flex-wrap:wrap; align-items:center; gap:12px 25px; margin-top:15px; padding:15px; border-radius:14px; background:#fffdf7; border:1px solid #d7debe; }
.animal-quiz b { font-size:15px; display:block; color:#374f43; }
#animal-count-help { display:block; color:#69785c; font-size:12px; margin-top:5px; }
.animal-answers { display:flex; gap:9px; }
.animal-answers button { width:48px; height:48px; font-size:21px; background:#e7eddb; border:2px solid transparent; color:#395644; box-shadow:none; border-radius:12px; }
.animal-answers .retry { border-color:#d3a75e; }
.animal-answers .correct { background:#427f60; color:#fff; opacity:1; }
#animal-feedback { flex-basis:100%; margin:0; font-size:13px; line-height:1.5; color:#506c42; }
.animal-marker { position:absolute; transform:translate(-50%,-100%); pointer-events:auto; min-height:35px; border:1px solid #fff8; border-radius:16px; padding:6px 11px; box-shadow:0 3px 12px #2b432f24; font-size:11px; font-weight:800; white-space:nowrap; color:#375b46; background:#fffbeaef; }
.animal-marker[data-animal="rat"] { color:#514a6a; background:#f0e9ffef; }
.animal-marker[data-animal="sewer"] { color:#fff; background:#555d70ee; }
.animal-view .quest-card,.animal-view .action-area,.animal-view .control-pad { display:none; }
.animal-view .world-caption { font-size:12px; max-width:80%; }
@media(max-width:600px){
 .animal-bar { padding:15px; border-radius:16px; }
 .animal-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
 .animal-actions button { padding:10px 8px; font-size:12px; }
 .animal-actions #animal-rats { grid-column:1/-1; }
 .animal-intro h2 { font-size:18px; }
 .animal-quiz { gap:13px; padding:12px; }
 .animal-answers { justify-content:space-between; width:100%; }
 .animal-marker { font-size:10px; padding:5px 8px; min-height:32px; }
 .animal-view .camera-switch { flex-direction:row; top:74px; left:12px; right:auto; }
}
.animal-marker.counted { color:#fff; background:#577b5b; border-color:#e1f5b3; }

.city-hub { padding:20px 22px; margin:0 0 16px; border-radius:20px; border:1px solid #cad7ca; background:linear-gradient(110deg,#f7f5e7,#e6eee9); }
.city-minimap { position:absolute; right:20px; top:96px; width:142px; padding:8px; border-radius:14px; border:1px solid #fff; background:#fffbedec; color:#3d604e; box-shadow:0 4px 16px #3c513b12; }
.city-minimap b { display:block; font-size:11px; margin-bottom:5px; }
.city-minimap canvas { display:block; width:100%; height:auto; border-radius:8px; }
.city-minimap span { display:block; font-size:8px; margin-top:6px; white-space:nowrap; }
.indoors .city-minimap,.garage-view .city-minimap,.animal-view .city-minimap { display:none; }
@media(max-width:600px) { .city-minimap { right:12px; top:207px; width:104px; padding:6px; } .city-minimap span { font-size:6px; } }
.city-hub > div > span { font-size:9px; font-weight:800; letter-spacing:2px; color:#7c865e; }
.city-hub h2 { font-size:23px; color:#355945; margin:7px 0; letter-spacing:-.5px; }
.city-hub p { margin:7px 0 0; font-size:12px; line-height:1.5; color:#5c715e; }
.city-hub-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.city-hub-actions button { min-height:44px; padding:11px 15px; background:#fffdf2; border:1px solid #b5c7b0; border-radius:12px; color:#395a48; font-size:13px; box-shadow:none; }
.city-hub-actions #city-ferrari { background:#ae3442; border-color:#ae3442; color:white; }
.city-hub-actions #city-bike { background:#303e49; border-color:#303e49; color:#ffdeb0; }
.vehicle-marker { position:absolute; transform:translate(-50%,-100%); pointer-events:auto; padding:8px 12px; min-height:40px; border-radius:14px; background:#fff5ddf5; color:#4c5343; font-size:12px; font-weight:800; border:1px solid #fff; box-shadow:0 4px 14px #2e443329; }
.vehicle-marker[data-vehicle="car"] { border-color:#e5b8b6; color:#a13642; }
.vehicle-marker[data-vehicle="bike"] { background:#354452f5; color:#ffe0a7; }
.cockpit-view .quest-card,.cockpit-view .world-caption,.cockpit-view #interact { display:none; }
.cockpit-view .city-minimap { top:91px; width:105px; opacity:.88; }
.cockpit-panel { position:absolute; bottom:14px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:20px; padding:12px 16px; border:1px solid #657075; border-top:3px solid #ad3440; border-radius:16px; color:#eff4df; background:linear-gradient(#202731f5,#0d141af5); box-shadow:0 4px 20px #0006; }
.cockpit-panel[hidden] { display:none; }
.cockpit-instruments { display:flex; align-items:center; gap:18px; }
.cockpit-instruments > div { display:grid; gap:2px; min-width:42px; text-align:center; }
.cockpit-instruments strong { font:700 24px ui-monospace,monospace; color:#e6facb; font-variant-numeric:tabular-nums; }
.cockpit-instruments span { font:700 8px sans-serif; letter-spacing:1.2px; color:#bac7cb; }
.cockpit-buttons { display:flex; gap:7px; }
.cockpit-buttons button { min-height:44px; padding:9px 12px; border:1px solid #667381; border-radius:9px; background:#303b47; color:#e4ebed; box-shadow:0 3px 0 #0c1119; font-size:11px; }
.cockpit-buttons button[aria-pressed="true"] { background:#355945; border-color:#a7d9a7; color:#e4ffcc; }
.cockpit-buttons #dash-hazards[aria-pressed="true"] { background:#764b27; border-color:#efba6a; color:#ffe1a4; }
.cockpit-view .action-area { bottom:108px; }
.cockpit-view .control-pad { bottom:114px; }
.cockpit-view .camera-switch { bottom:auto; top:91px; right:auto; left:20px; }
@media(max-width:600px) {
 .cockpit-panel { width:calc(100% - 24px); flex-direction:column; gap:8px; padding:9px 11px; bottom:12px; }
 .cockpit-instruments { width:100%; justify-content:space-around; gap:8px; }
 .cockpit-instruments strong { font-size:21px; }
 .cockpit-buttons { width:100%; }
 .cockpit-buttons button { flex:1; min-width:0; padding:8px 6px; font-size:10px; }
 .cockpit-view .control-pad { bottom:151px; }
 .cockpit-view .action-area { bottom:151px; }
 .cockpit-view .camera-switch { flex-direction:row; top:77px; left:12px; }
 .cockpit-view .city-minimap { top:124px; right:12px; width:82px; }
 .cockpit-view .city-minimap span { display:none; }
}
.vehicle-board { position:absolute; z-index:4; transform:translate(-50%,-100%); display:flex; align-items:center; gap:12px; min-width:170px; min-height:68px; padding:10px 16px 10px 10px; border:2px solid #baf78f; border-radius:16px; color:#fff; background:#233e36f5; box-shadow:0 5px 0 #122a23,0 9px 24px #13271f42; pointer-events:auto; text-align:left; }
.vehicle-board[hidden] { display:none; }
.vehicle-board:hover,.vehicle-board:focus-visible { background:#315f47; outline:3px solid #fff0a7; outline-offset:3px; }
.board-key { display:grid; place-items:center; width:42px; height:42px; border-radius:11px; background:#d4ffae; color:#203c2e; font-size:24px; font-weight:900; box-shadow:0 3px 0 #8caf74; }
.vehicle-board small { display:block; font-size:10px; font-weight:700; color:#c9dcca; line-height:1.4; }
.vehicle-board strong { display:block; font-size:22px; font-weight:900; line-height:1.2; }
@media(pointer:coarse) { .board-key { font-size:0; } .board-key::after { content:'↗'; font-size:26px; } }
.vehicle-controls[data-vehicle="bike"] { background:linear-gradient(115deg,#18252f,#41352b); border-color:#655546; }
.garage-view .world-caption { max-width:70%; }
@media(max-width:600px){
 .city-hub { padding:16px; }
 .city-hub h2 { font-size:20px; }
 .city-hub-actions { display:grid; grid-template-columns:1fr 1fr; }
 .city-hub-actions button { font-size:12px; padding:10px 8px; }
 .city-hub-actions #city-home,.city-hub-actions #city-lesson { grid-column:1/-1; }
 .vehicle-marker { font-size:10px; max-width:130px; padding:7px 8px; }
}
