/* Avika's toybox: shared, child-sized primitives. Loaded after legacy themes. */
:root {
  --play-ink: #28375b;
  --play-purple: #7454d7;
  --play-purple-dark: #50369b;
  --play-mint: #b9f0d9;
  --play-yellow: #ffe475;
  --play-pink: #ffb4c9;
  --play-line: #dcd7f3;
  --play-shadow: 0 6px 0 #dcd5ee, 0 10px 20px #4f3a7312;
}
body {
  background:
    radial-gradient(circle at 7% 4%, #fff3bf 0, transparent 25%),
    radial-gradient(circle at 95% 28%, #ddf7f0 0, transparent 30%), #f5f2ff;
  color: var(--play-ink);
}
button,
.primary-button,
.quiet-button,
.world-control,
.world-tool {
  min-height: 56px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 18px;
  touch-action: manipulation;
  transition:
    transform 0.14s,
    box-shadow 0.14s,
    background 0.14s;
}
button:active:not(:disabled),
a.primary-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #bbb0d7;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
canvas:focus-visible {
  outline: 4px solid #237a96;
  outline-offset: 4px;
}
.primary-button,
.world-primary {
  background: linear-gradient(#9477ef, #7553d8);
  color: #fff;
  border: 2px solid #fff6;
  border-bottom: 6px solid #51359d;
  box-shadow: 0 5px 0 #e5def5;
  min-height: 64px;
  font-size: 19px;
  border-radius: 22px;
}
.quiet-button,
.world-tool {
  background: #fff;
  border: 2px solid #e7dff5;
  border-bottom: 5px solid #d5c8ed;
  color: #4d3979;
}
.console-header {
  min-height: 88px;
  padding: 14px 24px;
  gap: 20px;
  max-width: 1320px;
  border: 0;
}
.brand {
  font-size: 24px;
}
.player-pill {
  min-height: 56px;
}
.home-nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 800;
}
.parent-trigger {
  font-size: 14px;
}
.console-main {
  padding-top: 20px;
}
.console-footer {
  font-size: 14px;
}
.avika-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.avika-family-help {
  margin: 24px auto;
  max-width: 1280px;
}
.avika-family-help > summary {
  cursor: pointer;
  font-size: 15px;
  padding: 18px;
  background: #fff;
  border: 2px solid #ddd5f0;
  border-radius: 16px;
  font-weight: 800;
}
.avika-family-help .game-playbook {
  margin-top: 12px;
}
.welcome-line {
  gap: 20px;
}
.welcome-line h1 {
  font-size: clamp(30px, 4vw, 48px);
  color: #4a3679;
  max-width: 750px;
}
.welcome-stamp {
  font-size: 15px;
}
.village-feature,
.kido-feature {
  border: 3px solid #fff;
  border-bottom: 9px solid #c6b9e8;
  border-radius: 32px;
  box-shadow: 0 15px 35px #5b448217;
}
.village-feature .feature-copy {
  max-width: 70%;
}
.feature-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
}
.feature-copy p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 350px;
}
.game-tile {
  border: 3px solid #fff;
  border-bottom: 8px solid #d4caee;
  border-radius: 28px;
  box-shadow: 0 6px 14px #5b44820d;
}
.tile-play {
  width: 56px;
  height: 56px;
  font-size: 28px;
  background: #7454d7;
  color: white;
  border: 3px solid #fff;
  border-radius: 20px;
  box-shadow: 0 4px 0 #51359d;
}
.tile-copy h3 {
  font-size: 22px;
}
.tile-copy p {
  font-size: 16px;
  line-height: 1.5;
}
.shelf-tab {
  min-height: 56px;
  min-width: 82px;
  font-size: 16px;
}
.search-box input {
  font-size: 17px;
  min-height: 54px;
}
.empty-state {
  padding: 32px;
}
.new-game-links a {
  min-height: 72px;
  border-radius: 20px;
}
.game-grid {
  gap: 24px;
}
/* City chrome: five discoverable tools; family and advanced tools remain reachable. */
body[data-game-id="kid_city_adventure"] .home-nav,
body[data-game-id="kid_city_adventure"] .brand-small {
  display: none;
}
body[data-game-id="kid_city_adventure"] .console-header {
  max-width: 1400px;
  padding: 10px 20px;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: space-between;
}
body[data-game-id="kid_city_adventure"] .brand {
  font-size: 19px;
  min-width: 0;
  gap: 8px;
}
body[data-game-id="kid_city_adventure"] .brand img {
  width: 36px;
  height: 36px;
}
body[data-game-id="kid_city_adventure"] .console-main {
  max-width: 1440px;
  padding: 10px 20px 24px;
}
.world-game[data-kind="village"] {
  --city-ink: var(--play-ink);
  --city-paper: #fff;
  --city-line: #e1d9f3;
  --city-accent: #7454d7;
}
.world-game[data-kind="village"] .world-heading {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 8px 0;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.world-game[data-kind="village"] .world-heading h1 {
  font-size: clamp(26px, 4vw, 36px);
  color: #4c3880;
}
.world-game[data-kind="village"] .world-heading .eyebrow {
  display: none;
}
.world-game[data-kind="village"] .world-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.world-game[data-kind="village"] .world-tools .world-tool {
  font-size: 14px;
  min-height: 52px;
  padding: 10px 16px;
}
.world-game[data-kind="village"] .world-tools .arcade-favorite,
.world-game[data-kind="village"] #worldMapButton {
  display: none;
}
.world-game[data-kind="village"] .world-stage {
  border: 4px solid #fff;
  border-radius: 30px;
  box-shadow:
    0 8px 0 #d5c9f0,
    0 18px 40px #3b31651a;
  min-height: 510px;
  max-height: none;
  aspect-ratio: 16/10;
  background: #cdeeff;
}
.world-game[data-kind="village"] .world-control-deck {
  border: 0;
  background: transparent;
  padding: 16px 0 4px;
}
.world-game[data-kind="village"] .world-control-deck > p {
  font-size: 16px;
  background: #fff;
  padding: 12px 18px;
  border: 2px solid #e7dff7;
  border-radius: 16px;
  line-height: 1.5;
}
.world-game[data-kind="village"] .world-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: visible;
  gap: 12px;
  padding: 8px 0;
}
.world-game[data-kind="village"] .world-control {
  font:
    800 17px/1.3 Nunito,
    sans-serif;
  min-height: 72px;
  border: 2px solid #fff;
  border-bottom: 6px solid #c7b8e8;
  border-radius: 22px;
  background: #fff;
  color: #4e3d77;
  box-shadow: 0 3px 0 #e1d7f5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: normal;
  padding: 12px;
}
.world-game[data-kind="village"] .world-control.is-primary {
  background: #bff0d9;
  color: #205a46;
  border-color: #a1dcc1;
  border-bottom-color: #69b992;
}
.world-game[data-kind="village"] .world-control .avika-icon {
  width: 34px;
  height: 34px;
}
.world-game[data-kind="village"] .world-controls [data-action="jump"] {
  display: none !important;
}
.world-game[data-kind="village"] .world-hud {
  top: 14px;
  left: 14px;
  right: 14px;
}
.world-game[data-kind="village"] .mission-card {
  border: 2px solid #fff;
  background: #fffdf4ed;
  border-radius: 18px;
  max-width: 350px;
  padding: 12px 16px;
}
.world-game[data-kind="village"] .mission-card strong {
  font-size: 16px;
  line-height: 1.4;
}
.world-game[data-kind="village"] .mission-card > span {
  font-size: 11px;
}
.world-game[data-kind="village"] .mission-track > span {
  background: #7e62d5;
}
.world-game[data-kind="village"] .world-hud > .world-tool {
  font-size: 15px;
  border: 2px solid #fff;
  min-width: 70px;
  background: #fff;
}
.city-map-button {
  width: 108px;
  height: 108px;
  top: 100px;
  border: 4px solid #fff;
  border-radius: 24px;
}
.city-destination {
  top: 218px;
  font-size: 14px;
  background: #fff;
  border: 2px solid #e3d8f4;
  max-width: 220px;
  padding: 10px;
}
.city-identity {
  padding: 8px 12px;
  border: 2px solid #fff;
  border-radius: 20px;
  background: #fffef5;
}
.city-identity span {
  font-size: 14px;
}
.city-context-prompt {
  min-height: 64px;
  border: 3px solid #fff;
  border-bottom: 6px solid #3b9475;
  background: #a8e9cc;
  color: #204d3d;
  font-size: 18px;
  border-radius: 22px;
  padding: 14px 22px;
}
.city-control-tip {
  display: none;
}
.city-jump {
  min-width: 72px;
  min-height: 72px;
  font-size: 18px;
}
.city-joystick {
  touch-action: none;
}
.experience-launch {
  display: none !important;
}
/* Sheets are a separate focus layer, never obscured by world HUD widgets. */
.city-sheet {
  z-index: 30;
  inset: 12px;
  padding: 24px;
  background: #f8f6ff;
  border: 4px solid #fff;
  border-radius: 26px;
  box-shadow: 0 18px 70px #30295250;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.city-sheet-heading {
  position: sticky;
  top: -24px;
  z-index: 4;
  background: #f8f6fff5;
  padding: 12px 0;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}
.city-sheet h2 {
  font-size: 28px;
  letter-spacing: -0.5px;
  color: #4b367d;
}
.city-sheet p {
  font-size: 17px;
  line-height: 1.55;
  max-width: none;
}
.city-sheet button {
  font:
    800 17px/1.35 Nunito,
    sans-serif;
  min-height: 58px;
  padding: 12px 18px;
  border: 2px solid #dfd6f1;
  border-bottom: 5px solid #ccbee6;
  border-radius: 18px;
  background: #fff;
  color: #4e3a7b;
  margin: 4px;
  overflow-wrap: break-word;
}
.city-sheet button:hover {
  background: #eee8ff;
}
.city-sheet button:active {
  transform: translateY(3px);
}
.city-sheet-heading > button {
  background: #fff;
  color: #514172;
  min-width: 82px;
}
.city-sheet button.avika-primary {
  background: #7957d8;
  color: #fff;
  border-color: #7957d8;
  border-bottom-color: #51359d;
}
.city-sheet button.avika-mint {
  background: #b9ecd4;
  border-bottom-color: #73b99a;
  color: #234e3d;
}
.city-card-grid {
  gap: 14px;
}
.city-card-grid > button {
  min-height: 92px;
  font-size: 17px;
  border-radius: 22px;
}
.avika-buddy {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eae2ff;
  border: 2px solid #d9cbf5;
  padding: 14px 18px;
  border-radius: 24px;
  color: #4a3679;
  margin-bottom: 16px;
}
.avika-buddy .avika-icon {
  width: 62px;
  height: 62px;
}
.avika-buddy p {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}
.avika-star-total {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  color: #6e4e18;
}
.avika-star-total .avika-icon {
  width: 50px;
  height: 50px;
}
.avika-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.avika-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  min-height: 138px !important;
  border-radius: 24px !important;
  text-align: center !important;
  margin: 0 !important;
  background: var(--card-tint, #fff) !important;
}
.avika-category .category-picture {
  font-size: 42px;
  line-height: 1.2;
}
.avika-category small {
  font-size: 14px;
  color: #514b6b;
}
.avika-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.avika-task-card {
  display: grid !important;
  grid-template-columns: 60px 1fr;
  gap: 14px !important;
  align-items: center;
  min-height: 100px !important;
  text-align: left !important;
  margin: 0 !important;
}
.avika-task-card .task-picture {
  font-size: 40px;
  text-align: center;
}
.avika-task-card strong {
  font-size: 18px;
  display: block;
}
.avika-task-card small {
  display: block;
  font-size: 14px;
  margin-top: 4px;
  color: #6b6380;
}
.avika-recommend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  background: #fff0b7;
  border: 2px solid #f0d578;
  border-radius: 24px;
  padding: 16px;
  margin: 12px 0;
}
.avika-recommend div {
  flex: 1;
  min-width: 150px;
}
.avika-recommend p {
  margin: 0;
}
.avika-recommend button {
  margin: 0;
}
.avika-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.avika-actions > button {
  margin: 0;
  flex: 1;
  min-width: 140px;
}
.avika-details {
  border: 2px solid #e3daf3;
  border-radius: 18px;
  padding: 12px 16px;
  background: #fff;
}
.avika-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
}
.avika-details p {
  margin: 12px 0 0;
}
.city-activity-board {
  gap: 16px;
  overflow: visible;
}
.city-activity-list {
  display: none;
}
.city-hands-instruction {
  font-size: 20px !important;
  font-weight: 900 !important;
  padding: 16px 20px;
  background: #e6f7f0;
  color: #235d49;
  border: 2px solid #bce5d3;
  border-radius: 22px;
  margin: 0 !important;
}
.city-hands-canvas {
  max-width: 800px;
  margin: auto;
  min-width: 0 !important;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border: 3px solid #dcd3f2;
  border-bottom: 7px solid #c2b2e0;
  border-radius: 26px;
  background: #faf8ff;
  touch-action: none;
  box-shadow: 0 8px 18px #4936750d;
}
.city-hands-status {
  font-size: 17px !important;
  min-height: 30px;
  margin: 0 !important;
  text-align: center;
}
.city-hands-help {
  font-size: 15px !important;
}
.avika-task-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avika-task-top .avika-icon {
  width: 42px;
  height: 42px;
}
.avika-task-top strong {
  flex: 1;
  font-size: 18px;
}
.avika-task-top button {
  min-height: 52px;
  font-size: 16px;
  margin: 0;
}
.avika-progress {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
}
.avika-progress > i {
  height: 12px;
  border-radius: 8px;
  flex: 1;
  background: #e3dcf1;
}
.avika-progress > i.earned {
  background: #70cba4;
}
.avika-work-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  background: #f8f6ff;
}
.avika-work-footer button {
  margin: 0;
  flex: 1;
  font-size: 16px;
}
.city-recipe {
  font-size: 18px;
  line-height: 1.6;
  border: 2px solid #f2d473;
  background: #fff2ba;
  border-radius: 20px;
}
.avika-order {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.avika-order span {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  border: 2px solid #e4d9f5;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  min-width: 74px;
}
.avika-order b {
  font-size: 34px;
}
.city-story-page {
  font-size: 21px !important;
  line-height: 1.7 !important;
  padding: 20px;
  background: #fff8db;
  border: 2px solid #f2dda0;
  border-radius: 22px;
}
.avika-celebration {
  position: relative;
  text-align: center;
  padding: 24px 12px;
  overflow: hidden;
}
.avika-celebration > .avika-icon {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 7px 0 #ead3a0);
  animation: avika-pop 0.45s ease-out;
}
.avika-celebration h3 {
  font-size: 30px;
  color: #6e48bb;
  margin: 20px 0 10px;
}
.avika-celebration p {
  font-size: 19px;
}
.avika-stickers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.avika-sticker {
  border: 3px solid #e2d9f3;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  padding: 18px 12px;
}
.avika-sticker span {
  font-size: 44px;
  display: block;
}
.avika-sticker strong {
  display: block;
  font-size: 17px;
  margin: 10px 0;
}
.avika-sticker small {
  font-size: 15px;
}
.avika-sticker.earned {
  background: #fff3bd;
  border-color: #efcb67;
  box-shadow: 0 5px 0 #e5bb58;
}
.avika-sticker:not(.earned) span {
  filter: grayscale(1);
  opacity: 0.55;
}
.avika-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.avika-confetti i {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 12px;
  height: 18px;
  border-radius: 4px;
  animation: avika-confetti 1.25s ease-out var(--delay) both;
}
@keyframes avika-pop {
  0% {
    transform: scale(0.7);
  }
  65% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes avika-confetti {
  0% {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), 260px) rotate(var(--turn));
    opacity: 0;
  }
}
/* A playable, clearly explained alternative when 3D is unavailable. */
.avika-fallback {
  position: absolute;
  inset: 16px;
  z-index: 20;
  background: #f6f0ff;
  border: 4px solid white;
  border-radius: 28px;
  padding: 24px;
  overflow: auto;
}
.avika-fallback h2 {
  font-size: 28px;
}
.avika-fallback p {
  font-size: 18px;
}
.avika-fallback .avika-actions {
  margin-top: 24px;
}
.world-game[data-kind="village"] .world-lobby {
  background: linear-gradient(115deg, #eef2ffed, #dff6ebc9), var(--scene-image);
  color: #344568;
  gap: 24px;
}
.world-game[data-kind="village"] .lobby-copy h2 {
  color: #513a85;
  font-size: clamp(32px, 5vw, 52px);
}
.world-game[data-kind="village"] .lobby-copy > p {
  color: #44546e;
  font-size: 20px;
  max-width: 410px;
}
.world-game[data-kind="village"] .world-kicker {
  color: #5b4c7e;
  font-size: 13px;
}
.world-game[data-kind="village"] .lobby-rule {
  color: #3d5b54;
  font-size: 17px;
  background: #ffffffb3;
  border: 2px solid white;
  border-radius: 18px;
  padding: 16px;
}
.world-game[data-kind="village"] .chapter-selection {
  background: #ffffffd9;
  border: 3px solid white;
  color: #413b60;
  box-shadow: 0 8px 0 #d8cce9;
}
.world-game[data-kind="village"] .chapter-choice {
  min-height: 72px;
  font-size: 17px;
  color: #413b60;
  background: #f6f1ff;
  border: 2px solid #dfd3f3;
}
.world-game[data-kind="village"] .chapter-choice:disabled {
  opacity: 0.75;
}
.world-game[data-kind="village"] .chapter-choice[aria-pressed="true"] {
  background: #ffefaf;
  border-color: #e7c96a;
}
.world-game[data-kind="village"] .chapter-choice p,
.world-game[data-kind="village"] .chapter-save-note {
  color: #5e5571;
}
@media (max-width: 900px) {
  .avika-category-grid,
  .avika-stickers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .console-header {
    gap: 14px;
  }
  .console-header .home-nav {
    display: none;
  }
  .world-game[data-kind="village"] .world-control {
    font-size: 15px;
    gap: 5px;
  }
  .world-game[data-kind="village"] .world-controls {
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .console-header {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 12px;
  }
  .console-header .brand {
    flex: 1;
  }
  .console-header .parent-trigger {
    font-size: 14px;
    padding: 10px 14px;
  }
  .console-main {
    padding: 16px;
  }
  .welcome-line h1 {
    font-size: 32px;
  }
  .welcome-stamp {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .village-feature .feature-copy {
    max-width: 90%;
  }
  .feature-copy p {
    font-size: 17px;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .tile-copy {
    padding: 14px;
  }
  .tile-copy h3 {
    font-size: 18px;
  }
  .tile-copy p {
    font-size: 14px;
  }
  .tile-play {
    width: 48px;
    height: 48px;
  }
  .shelf-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }
  .shelf-tab {
    min-width: 74px;
    padding: 10px;
  }
  .new-adventures {
    display: none;
  }
  body[data-game-id="kid_city_adventure"] .console-header {
    padding: 10px 12px;
  }
  body[data-game-id="kid_city_adventure"] .brand span {
    display: none;
  }
  body[data-game-id="kid_city_adventure"] .brand {
    flex: 0;
  }
  body[data-game-id="kid_city_adventure"] .player-pill {
    font-size: 15px;
    padding: 8px 12px;
  }
  body[data-game-id="kid_city_adventure"] .parent-trigger {
    padding: 10px;
    font-size: 13px;
  }
  body[data-game-id="kid_city_adventure"] .console-main {
    padding: 8px 10px;
  }
  .world-game[data-kind="village"] .world-tools .world-tool {
    min-height: 50px;
    font-size: 14px;
    padding: 8px 12px;
  }
  .world-game[data-kind="village"] .world-heading h1 {
    font-size: 26px;
  }
  .world-game[data-kind="village"] .world-stage {
    min-height: 540px;
    border-radius: 24px;
    aspect-ratio: auto;
    height: 65svh;
  }
  .world-game[data-kind="village"] .world-controls {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .world-game[data-kind="village"] .world-control {
    font-size: 12px;
    padding: 8px 2px;
    min-height: 80px;
    flex-direction: column;
    border-radius: 16px;
  }
  .world-game[data-kind="village"] .world-control-deck > p {
    font-size: 16px;
  }
  .world-game[data-kind="village"] .world-control .avika-icon {
    width: 30px;
    height: 30px;
  }
  .world-game[data-kind="village"] .world-hud {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .world-game[data-kind="village"] .mission-card {
    max-width: calc(100% - 90px);
    padding: 10px;
  }
  .world-game[data-kind="village"] .mission-card strong {
    font-size: 14px;
  }
  .world-game[data-kind="village"] .world-hud > .world-tool {
    min-height: 54px;
    min-width: 66px;
  }
  .city-identity {
    top: 96px;
    left: 10px;
    bottom: auto;
  }
  .city-identity span {
    font-size: 13px;
  }
  .city-map-button {
    width: 78px;
    height: 78px;
    right: 10px;
    top: 96px;
  }
  .city-destination {
    right: 10px;
    top: 184px;
    font-size: 13px;
    max-width: 170px;
  }
  .city-context-prompt {
    max-width: calc(100% - 190px);
    font-size: 16px;
    padding: 10px;
    min-height: 64px;
    left: 50%;
    bottom: 26px;
  }
  .city-v2-ui .city-joystick {
    width: 92px;
    height: 92px;
  }
  .city-jump {
    min-height: 76px;
    min-width: 76px;
    font-size: 17px;
  }
  .city-sheet {
    position: fixed;
    inset: max(8px, env(safe-area-inset-top)) 8px
      max(8px, env(safe-area-inset-bottom));
    z-index: 120;
    padding: 16px;
    border-radius: 24px;
  }
  .city-sheet-heading {
    top: -16px;
    padding: 12px 0;
  }
  .city-sheet h2 {
    font-size: 24px;
  }
  .city-sheet p {
    font-size: 17px;
  }
  .city-sheet button {
    font-size: 16px;
    min-height: 58px;
    padding: 12px 14px;
  }
  .avika-category-grid,
  .avika-stickers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .avika-category {
    min-height: 128px !important;
    font-size: 17px !important;
  }
  .avika-task-grid {
    grid-template-columns: 1fr;
  }
  .avika-buddy {
    padding: 12px;
  }
  .avika-buddy p {
    font-size: 18px;
  }
  .avika-buddy .avika-icon {
    width: 52px;
    height: 52px;
  }
  .avika-task-top button {
    padding: 10px;
    font-size: 15px;
  }
  .city-hands-instruction {
    font-size: 19px !important;
    padding: 14px;
  }
  .city-hands-canvas {
    border-radius: 22px;
  }
  .avika-work-footer button {
    font-size: 15px;
    min-width: 120px;
  }
  .avika-recommend {
    padding: 14px;
  }
  .avika-actions > button {
    min-width: 125px;
  }
  .world-game[data-kind="village"] .world-lobby {
    padding: 20px;
    overflow-y: auto;
    display: block;
  }
  .world-game[data-kind="village"] .lobby-copy h2 {
    font-size: 36px;
  }
  .world-game[data-kind="village"] .lobby-copy > p {
    font-size: 19px;
  }
  .world-game[data-kind="village"] .chapter-selection {
    margin-top: 22px;
  }
  .world-game[data-kind="village"] .lobby-rule {
    font-size: 17px;
  }
}
@media (max-width: 360px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
  .world-game[data-kind="village"] .world-control {
    font-size: 11px;
  }
  .city-sheet {
    padding: 12px;
  }
  .city-sheet-heading {
    top: -12px;
  }
  .city-sheet h2 {
    font-size: 22px;
  }
  .city-sheet button {
    padding: 10px 12px;
  }
  .avika-category-grid {
    gap: 8px;
  }
  .avika-category {
    font-size: 16px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .avika-confetti {
    display: none;
  }
  .avika-celebration > .avika-icon {
    animation: none;
  }
  button,
  a {
    transition: none !important;
  }
}
.reduce-motion .avika-confetti {
  display: none;
}
.reduce-motion .avika-celebration > .avika-icon {
  animation: none;
}
.reduce-motion button,
.reduce-motion a {
  transition: none !important;
}
.avika-current-step {
  font-size: 21px !important;
  font-weight: 900;
  color: #5b4188;
  margin: 0 !important;
}
.avika-plan-label {
  font-size: 17px !important;
  font-weight: 800;
  margin-bottom: 8px !important;
}
.avika-order {
  margin-bottom: 12px;
}
.avika-order small {
  font-size: 14px;
}
.avika-star-total {
  justify-content: center;
}
.avika-category .category-picture {
  font-size: 42px;
}
.avika-task-details {
  display: grid;
  gap: 12px;
}
.avika-task-top {
  order: -1;
}
.avika-celebration .avika-star-total {
  margin: 20px 0;
}
.city-sheet .avika-work-footer {
  padding-top: 14px;
}
.city-v2-ui .city-jump {
  border-radius: 50%;
  background: #c4b2ff;
  color: #49336f;
  border: 4px solid white;
  border-bottom: 7px solid #8d70cb;
}
.city-joystick::after {
  background: #9475db !important;
  box-shadow: 0 5px 0 #6445a3 !important;
}
.city-sheet .avika-details > summary {
  font-size: 16px;
}
.avika-recommend .category-picture {
  font-size: 44px;
}
.avika-sticker button {
  min-height: 52px;
  font-size: 15px;
  padding: 10px;
}
@media (max-width: 600px) {
  .avika-task-top strong {
    display: none;
  }
  .avika-task-top {
    justify-content: space-between;
  }
  .avika-task-top button {
    min-height: 52px;
  }
  .avika-task-top .avika-icon {
    width: 46px;
    height: 46px;
  }
  .avika-order {
    gap: 8px;
  }
  .avika-order span {
    padding: 8px;
    min-width: 68px;
  }
  .avika-order small {
    font-size: 14px;
  }
  .avika-task-details {
    gap: 8px;
  }
  .avika-plan-label {
    margin-bottom: 2px !important;
  }
}
.city-avatar-fields label {
  font-size: 16px;
}
.city-avatar-fields select {
  font-size: 16px;
  min-height: 56px;
  padding: 10px;
  min-width: 0;
  max-width: 100%;
}
.city-directory-card button + button {
  font-size: 16px;
}
.city-avatar-fields {
  min-width: 0;
}
.city-dressing-layout {
  grid-template-columns: 180px minmax(0, 1fr);
}
@media (max-width: 600px) {
  .city-dressing-layout {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .city-avatar-fields label {
    font-size: 16px;
  }
  .city-avatar-fields select {
    font-size: 16px;
    min-height: 56px;
  }
  .city-directory-card button + button {
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  .world-game[data-kind="village"] .world-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .world-game[data-kind="village"] .world-control {
    font-size: 14px;
  }
  .world-game[data-kind="village"] .world-control .avika-icon {
    width: 32px;
    height: 32px;
  }
}
body[data-game-id="kid_city_adventure"] .player-stars-badge {
  display: none;
}
.experience-bar button {
  font-size: 16px;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid #fff7;
  border-bottom: 5px solid #76b7a0;
}
.experience-bar strong {
  font-size: 16px;
  line-height: 1.5;
}
.experience-grid article {
  border: 3px solid #fff;
  border-bottom: 7px solid #cabce8;
  border-radius: 26px;
  background: #eee5ff;
  padding: 22px;
}
.experience-grid h3 {
  font-size: 24px;
  color: #523a80;
  line-height: 1.3;
}
.experience-grid p {
  font-size: 17px;
}
.experience-grid button {
  min-width: 130px;
  background: #b9ebd4;
  color: #285341;
  border-bottom-color: #6aaf8f;
}
@media (max-width: 600px) {
  .experience-bar {
    bottom: 130px;
    width: calc(100% - 24px);
    max-width: none;
    background: #fff8;
    color: #354664;
    border: 3px solid #fff;
    border-radius: 22px;
    padding: 10px;
  }
  .experience-bar button {
    font-size: 15px;
    min-height: 54px;
    padding: 10px 12px;
  }
  .experience-bar strong {
    font-size: 15px;
  }
  .experience-grid article {
    padding: 18px;
  }
}
.world-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.world-tools .world-tool {
  min-height: 56px;
  min-width: 56px;
  font-size: 16px;
  padding: 12px 16px;
}
.game-actions {
  flex-wrap: wrap;
}
.game-actions .quiet-button {
  min-height: 56px;
  font-size: 16px;
}
.tile-category {
  font-size: 14px;
}
