/* B3.6: light, readable game HUD; panels are reserved for deliberate actions. */
.brandmark {
  background: none !important;
  padding: 0 !important;
}
.brandmark img {
  width: 48px;
  height: 48px;
  display: block;
}
body[data-screen="play"] .topbar {
  align-items: flex-start;
  pointer-events: none;
}
body[data-screen="play"] .topbar button {
  pointer-events: auto;
}
#hud {
  display: flex;
  align-items: center;
  gap: 12px;
}
#hud[hidden] {
  display: none;
}
#xp-hud {
  width: 138px;
  color: #294b51;
  font-weight: 800;
  font-size: 11px;
  text-shadow: 0 1px 3px #fff;
}
#xp-hud span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
#xp-hud small {
  font-size: 9px;
  font-weight: 600;
}
#xp-hud progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 5px;
  appearance: none;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f3dc;
}
#xp-hud progress::-webkit-progress-bar {
  background: #f7f3dc;
}
#xp-hud progress::-webkit-progress-value {
  background: #4eaa9c;
}
body[data-screen="play"] .brand small {
  display: none;
}
body[data-screen="play"] .brand {
  background: transparent;
  box-shadow: none;
}
body[data-screen="play"] .brand strong {
  font-size: 15px;
}
#quest-card {
  top: 115px;
  left: 28px;
  bottom: auto;
  width: 258px;
  border: 0;
  border-radius: 0;
  padding: 10px 0;
  background: linear-gradient(90deg, #163c4569, transparent);
  box-shadow: none;
  color: #fff;
  text-shadow: 0 1px 4px #183d43;
  backdrop-filter: none;
}
#quest-card button {
  color: inherit;
  background: none;
  border: 0;
  box-shadow: none;
  text-shadow: inherit;
  padding: 7px 12px;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  border-radius: 0;
  margin: 0;
}
#quest-card button:hover {
  background: #fff2;
}
#quest-card .quest-heading {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: #ffe4a5;
}
#quest-card .quest-heading span {
  margin-left: auto;
  font-size: 20px;
}
#quest-card .quest-line i {
  font-style: normal;
  color: #ffe49c;
  font-size: 19px;
}
#quest-card .quest-line span {
  flex: 1;
  line-height: 1.5;
  font-weight: 750;
}
#quest-card small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  color: #f3f9e8;
}
#quest-card b {
  font-size: 16px;
  color: #ffe49c;
}
#room-card {
  top: auto;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 75vw;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fffbeaeb;
  padding: 8px 12px;
  border-radius: 30px;
  box-shadow: 0 3px 16px #244c5026;
  font-size: 11px;
}
#room-card[hidden] {
  display: none;
}
#room-card button {
  border: 0;
  background: transparent;
  color: #316663;
  font-weight: 700;
  white-space: nowrap;
  font-size: 11px;
}
#room-card #interior-location {
  font-size: 11px;
  margin: 0;
  white-space: nowrap;
}
#gps-hud {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: #254e55ed;
  border: 1px solid #eff3d142;
  border-radius: 28px;
  padding: 6px 8px 6px 16px;
  color: #fff5d3;
  font-size: 12px;
  font-weight: 700;
  z-index: 14;
  max-width: 70vw;
}
#gps-hud[hidden] {
  display: none;
}
#gps-stop {
  background: #ffffff20;
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 18px;
}
#mini-map {
  width: 180px;
  right: 26px;
  top: 103px;
  background: none;
  box-shadow: none;
  border: 0;
}
#mini-map #map {
  display: block;
  position: relative;
  padding: 0;
  width: 180px;
  height: 180px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, #eff7d9, #d9eff1 70%);
  border: 3px solid #fff7dd;
  box-shadow: 0 4px 20px #164e5525;
}
#mini-map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}
#mini-map #map > span {
  position: absolute;
  bottom: 14px;
  left: 24px;
  right: 24px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #315f68;
  background: #fff7e8db;
  border-radius: 9px;
  padding: 3px;
}
.live-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.map-route {
  fill: none;
  stroke: #ffd775;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 8;
  filter: drop-shadow(0 1px 1px #29505f);
}
.map-player-halo {
  fill: #43c9ca44;
  stroke: #fff;
  stroke-width: 2;
}
.map-player {
  fill: #158a91;
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 1px 3px #315564);
}
.map-modal {
  background: #f7f8ef !important;
  max-width: 1180px !important;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: center;
}
.map-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 50% 50%,
    #edf6e0,
    #d5eced 65%,
    #e9f0f0
  );
  border-radius: 26px;
}
.map-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.map-pin {
  z-index: 3;
  background: #fff9df;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px #26475438;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  position: absolute;
  transform: translate(-50%, -50%);
}
.map-pin.selected {
  background: #f5c96d;
  color: #37525a;
  border-color: #fff9df;
  scale: 1.15;
}
.destination-list {
  display: grid;
  gap: 3px;
}
.destination-list button {
  font-size: 12px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  border-radius: 10px;
  color: #49646a;
  display: flex;
  align-items: center;
  gap: 9px;
}
.destination-list button.selected {
  background: #e0eade;
  color: #205e58;
  font-weight: 800;
}
.map-selected {
  margin-top: 18px;
  border-top: 1px solid #dde2d3;
  padding-top: 14px;
}
.map-selected h3 {
  margin: 10px 0 6px;
}
.map-selected p {
  font-size: 12px;
}
.map-selected .primary {
  width: 100%;
}
.npc-name {
  position: fixed;
  transform: translate(-50%, -100%);
  pointer-events: none;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 1px 4px #123c43;
  z-index: 4;
}
.npc-name[hidden] {
  display: none;
}
.settings-tabs {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid #dce5d8;
  padding: 0 0 12px;
  margin-bottom: 18px;
  font-size: 13px;
  align-items: center;
}
.settings-tabs button {
  background: none;
  border: 0;
  color: #4d7a75;
  font-weight: 700;
}
.account-section {
  border-top: 1px solid #dce5d8;
  margin-top: 22px;
  padding-top: 18px;
}
.account-section summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 15px;
}
.account-section h3 {
  font-size: 14px;
}
.provider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 12px;
}
.provider-row span {
  flex: 1;
  color: #738b84;
}
.provider-row button {
  padding: 8px 12px;
}
.oauth-login {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.oauth-login button {
  flex: 1;
  font-size: 12px;
}
.danger-section {
  color: #9f5244;
}
.danger-section p {
  font-size: 12px;
  line-height: 1.7;
}
.danger-button {
  border: 0;
  background: #ab5547;
  color: #fff;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 750;
}
.room-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}
.room-list button {
  border: 1px solid #dce5d8;
  background: #f6f7ef;
  border-radius: 12px;
  font-size: 13px;
  justify-content: space-between;
}
.room-list small {
  font-size: 10px;
}
.equipment-layout {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 24px;
}
.equipment-slots {
  display: grid;
  gap: 8px;
  align-content: start;
}
.equipment-slot {
  border: 1px solid #d3e2d7;
  border-radius: 15px;
  background: #eaf1e6;
  padding: 12px;
}
.equipment-slot strong {
  display: block;
  font-size: 12px;
}
.equipment-slot small {
  display: block;
  font-size: 11px;
  color: #6a837b;
  margin: 6px 0;
}
.equipment-slot button {
  background: none;
  border: 0;
  font-size: 11px;
  color: #4c877e;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.inventory-item {
  border: 1px solid #dbe5d5;
  border-radius: 14px;
  padding: 13px;
  text-align: center;
  background: #fffdf4;
  min-height: 125px;
}
.inventory-item > span {
  font-size: 30px;
}
.inventory-item strong {
  display: block;
  font-size: 11px;
  margin: 9px 0;
}
.inventory-item small {
  font-size: 10px;
  color: #729086;
}
.inventory-item button {
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  background: #deece0;
  font-size: 11px;
  color: #326e64;
}
.inventory-item.equipped {
  border: 2px solid #66a58f;
  background: #eaf3e5;
}
.journey-islands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.journey-islands article {
  padding: 20px;
  border-radius: 18px;
  background: #ecf1e3;
  border: 1px solid #d7e4d4;
}
.journey-islands h3 {
  margin: 8px 0;
}
.journey-islands small {
  color: #758778;
}
.journey-islands p {
  font-size: 12px;
  line-height: 1.65;
}
@media (max-width: 900px) {
  body[data-screen="play"] .brand {
    display: none;
  }
  body[data-screen="play"] .topbar {
    justify-content: flex-end;
    padding: 16px;
  }
  #mini-map {
    right: 14px;
    top: 83px;
    width: 134px;
  }
  #mini-map #map {
    width: 134px;
    height: 134px;
  }
  #mini-map #map > span {
    left: 12px;
    right: 12px;
    bottom: 9px;
    font-size: 7px;
  }
  #quest-card {
    left: 15px;
    top: 91px;
    width: 218px;
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 14px;
  }
  .map-modal {
    padding: 25px !important;
  }
  .map-selected {
    margin-top: 8px;
  }
  .map-modal .modal-title {
    font-size: 26px;
  }
}
@media (max-width: 600px) {
  #hud {
    gap: 7px;
    width: 100%;
    justify-content: space-between;
  }
  #xp-hud {
    width: 91px;
    font-size: 9px;
  }
  #xp-hud small {
    font-size: 8px;
  }
  .profile-chip {
    padding: 5px 8px !important;
    gap: 5px !important;
    min-height: 38px !important;
  }
  .profile-chip .profile-name {
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }
  .profile-chip small {
    display: none;
  }
  .avatar-dot {
    width: 27px !important;
    height: 27px !important;
    font-size: 10px !important;
  }
  .currency {
    font-size: 12px !important;
    padding: 8px !important;
  }
  .currency small {
    display: none;
  }
  #menu {
    width: 36px;
    height: 36px;
  }
  #quest-card {
    top: 75px;
    width: 183px;
    left: 12px;
  }
  #quest-card .quest-line {
    font-size: 10px;
    padding: 5px 8px;
  }
  #quest-card small {
    font-size: 9px;
  }
  #quest-card .quest-heading {
    font-size: 8px;
    padding: 5px 8px;
  }
  #mini-map {
    top: 82px;
    right: 10px;
    width: 104px;
  }
  #mini-map #map {
    width: 104px;
    height: 104px;
  }
  #mini-map #map > span {
    font-size: 6px;
    bottom: 6px;
    left: 8px;
    right: 8px;
  }
  #gps-hud {
    top: auto;
    bottom: calc(160px + env(safe-area-inset-bottom));
    font-size: 10px;
    max-width: 80vw;
    white-space: nowrap;
  }
  #room-card {
    bottom: calc(206px + env(safe-area-inset-bottom));
    max-width: 91vw;
    gap: 5px;
    padding: 6px 10px;
  }
  #room-card #interior-location {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
  }
  #room-card button {
    font-size: 10px;
  }
  #playbar .location {
    display: none;
  }
  .map-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .map-image {
    width: min(100%, 58vh);
    flex: none;
  }
  .map-layout > div:last-child {
    width: 100%;
  }
  .destination-list {
    grid-template-columns: 1fr 1fr;
  }
  .destination-list button {
    font-size: 10px;
    padding: 6px;
  }
  .map-selected {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }
  .map-selected h3 {
    font-size: 14px;
  }
  .map-selected p {
    display: none;
  }
  .map-selected .primary {
    width: auto;
    margin-left: auto;
    font-size: 12px;
  }
  .map-modal .modal-title {
    font-size: 22px;
  }
  .map-modal .subtext {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .map-modal {
    padding: 22px 16px !important;
  }
  .equipment-layout {
    grid-template-columns: 1fr;
  }
  .equipment-slots {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .equipment-slot {
    padding: 10px;
  }
  .inventory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .inventory-item {
    padding: 10px 5px;
  }
  .journey-islands {
    grid-template-columns: 1fr 1fr;
  }
  .journey-islands article {
    padding: 12px;
  }
  .journey-islands h3 {
    font-size: 14px;
  }
  .room-list {
    grid-template-columns: 1fr;
  }
  .provider-row {
    flex-wrap: wrap;
  }
  .provider-row span {
    min-width: 100px;
  }
  .oauth-login {
    flex-direction: column;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  #quest-card {
    top: 70px;
    width: 190px;
  }
  #mini-map {
    top: 73px;
  }
  #mini-map #map {
    width: 110px;
    height: 110px;
  }
  #gps-hud {
    top: 73px;
    bottom: auto;
  }
  #room-card {
    bottom: 67px;
  }
  .map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .map-image {
    max-height: 65vh;
  }
  .map-modal .modal-title {
    font-size: 20px;
  }
  .destination-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 601px) {
  .map-image {
    max-width: calc(88dvh - 180px);
    justify-self: center;
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .map-modal {
    max-width: min(1120px, calc(88dvh + 170px)) !important;
  }
}

/* B3.8: the hub journey and a real, rotatable character wardrobe. */
.hub-trail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 20px 0;
}
.hub-stop {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  text-align: left;
  background: #f3f3e6;
  border: 1px solid #dfe5d5;
  border-radius: 14px;
  color: #2a514b;
}
.hub-stop:hover {
  background: #e5efdf;
}
.hub-stop span:nth-child(2) {
  flex: 1;
}
.hub-stop strong,
.hub-stop small {
  display: block;
}
.hub-stop small {
  font-size: 12px;
  margin-top: 5px;
  color: #657e72;
}
.hub-glyph {
  font-size: 27px;
}
.hub-invitation {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
}
.hub-invitation > span {
  font-size: 50px;
}
.hub-invitation h3,
.hub-invitation p {
  margin: 4px 0;
}
.hub-invitation small {
  color: #758265;
}
.hub-progress {
  width: 100%;
  height: 6px;
  accent-color: #5d9786;
}
.hub-story {
  background: #f7f0d9;
  border-left: 4px solid #d6b469;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  padding: 16px;
  line-height: 1.7;
}
.hub-question {
  line-height: 1.5;
  margin: 22px 0 15px;
}
.hub-options {
  display: grid;
  gap: 9px;
}
.hub-option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border: 2px solid #e2e7d8;
  background: #fffdf4;
  border-radius: 12px;
  color: #2d514a;
  font: inherit;
}
.hub-option[aria-pressed="true"] {
  border-color: #518879;
  background: #e6f1dd;
}
.hub-option-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #e4e8d7;
  font-weight: 800;
  flex-shrink: 0;
}
.hub-feedback {
  min-height: 24px;
  color: #85612c;
  line-height: 1.6;
}
.hub-feedback.correct {
  color: #37725c;
}
.hub-complete {
  text-align: center;
  padding: 22px 0;
}
.hub-complete > span {
  font-size: 70px;
}
.hub-complete small {
  color: #72816f;
}
.hub-complete p {
  line-height: 1.6;
}
#modal.wardrobe-modal {
  width: min(1000px, calc(100vw - 32px));
  max-width: 1000px;
  background: #fcfaef;
  padding: 30px;
  overflow: auto;
}
.wardrobe-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 36px;
}
.wardrobe-title h2 {
  margin: 7px 0 20px;
  font-size: 30px;
  letter-spacing: -1px;
}
.wardrobe-title h2 small {
  font-size: 13px;
  color: #768575;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 8px;
}
.wardrobe-title > span {
  background: #fff0be;
  color: #826223;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 700;
}
.wardrobe-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
}
.avatar-equipment {
  position: relative;
  min-height: 395px;
  background: radial-gradient(
    ellipse at 50% 42%,
    #f7f9e5 0,
    #e6efd9 68%,
    #d5e4cc 100%
  );
  border-radius: 24px;
  overflow: hidden;
}
.avatar-stage {
  position: absolute;
  inset: 10px 50px 74px;
}
.avatar-stage canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.avatar-stage canvas:active {
  cursor: grabbing;
}
.avatar-shadow {
  position: absolute;
  bottom: 10%;
  left: 30%;
  width: 40%;
  height: 12%;
  border-radius: 50%;
  background: #6582753b;
  filter: blur(8px);
}
.gear-slot {
  position: absolute;
  z-index: 2;
  width: 91px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fffcefdd;
  border: 2px solid #d2dec8;
  border-radius: 14px;
  padding: 9px 6px;
  color: #3b5c50;
  box-shadow: 0 4px 0 #c8d5ba66;
}
.gear-slot:hover {
  border-color: #84a78c;
}
.gear-slot > span {
  font-size: 28px;
}
.gear-slot strong {
  font-size: 12px;
}
.gear-slot small {
  font-size: 10px;
  line-height: 1.3;
  color: #738269;
}
.gear-hat {
  top: 28px;
  left: 12px;
}
.gear-outfit {
  top: 28px;
  right: 12px;
}
.gear-backpack {
  top: 162px;
  left: 12px;
}
.gear-shoes {
  top: 162px;
  right: 12px;
}
.avatar-turn {
  position: absolute;
  z-index: 2;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%);
  border: 0;
  border-radius: 20px;
  background: #fbfaefd9;
  padding: 7px 16px;
  color: #567461;
  font-size: 12px;
}
.wardrobe-level {
  position: absolute;
  bottom: 19px;
  left: 25px;
  right: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
  font-size: 12px;
  color: #496756;
}
.wardrobe-level progress {
  width: 100%;
  height: 7px;
  accent-color: #789b62;
}
.backpack-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 15px;
}
.backpack-heading h3 {
  margin: 4px 0;
}
.backpack-heading small {
  color: #829077;
  font-size: 11px;
}
.backpack-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
.pack-slot {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid #d9dfcd;
  border-radius: 11px;
  background: #f2f0e1;
  box-shadow: inset 0 3px 0 #e2e4d4;
  display: grid;
  place-items: center;
  min-width: 0;
  color: #406448;
}
.pack-slot > span {
  font-size: 29px;
}
.pack-slot small {
  position: absolute;
  right: 4px;
  bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  background: #fffbedbb;
  border-radius: 3px;
  padding: 1px 3px;
}
.pack-slot.is-worn {
  background: #e8efcf;
  border-color: #adbd7f;
}
.pack-slot[aria-pressed="true"] {
  outline: 3px solid #719582;
  outline-offset: 1px;
}
.pack-slot.empty {
  opacity: 0.65;
}
.pack-detail {
  min-height: 107px;
  padding: 15px 0 4px;
}
.pack-detail strong {
  font-size: 14px;
}
.pack-detail p {
  font-size: 12px;
  line-height: 1.6;
  color: #7b8574;
  margin: 7px 0;
}
.pack-detail button {
  padding: 8px 15px;
  font-size: 12px;
}
.wardrobe-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  border-top: 1px solid #e2e5d6;
  padding-top: 16px;
  margin-top: 22px;
  font-size: 12px;
  color: #657963;
}
.wardrobe-stats small {
  flex-basis: 100%;
  font-size: 11px;
  color: #8b9380;
}
@media (max-width: 700px) {
  #modal.wardrobe-modal {
    padding: 20px;
    width: calc(100vw - 16px);
  }
  .wardrobe-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .avatar-equipment {
    min-height: 345px;
  }
  .avatar-stage {
    inset: 0 52px 65px;
  }
  .gear-backpack,
  .gear-shoes {
    top: 147px;
  }
  .gear-slot {
    min-height: 97px;
    width: 80px;
  }
  .gear-hat,
  .gear-backpack {
    left: 10px;
  }
  .gear-outfit,
  .gear-shoes {
    right: 10px;
  }
  .wardrobe-title h2 {
    font-size: 24px;
  }
  .wardrobe-title > span {
    font-size: 12px;
    padding: 8px;
  }
  .hub-trail {
    grid-template-columns: 1fr;
  }
  .backpack-grid {
    gap: 8px;
  }
}
.pack-slot.empty {
  padding: 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
}
.wardrobe-title > span {
  flex-shrink: 0;
  white-space: nowrap;
}
.wardrobe-title h2 small {
  display: inline-block;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .wardrobe-title {
    align-items: flex-start;
  }
  .wardrobe-title h2 small {
    display: block;
    margin: 6px 0 0;
  }
  .wardrobe-title > span {
    margin-top: 24px;
  }
}

/* B3.9: listen, watch, touch — large props instead of quiz answer cards. */
.play-heading,
.play-welcome,
.play-how,
.play-dots,
.play-objects,
.play-celebrate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.play-heading {
  justify-content: space-between;
}
.play-heading h2 {
  margin: 5px 0;
}
.play-listen {
  border: 0;
  background: #e4f0e8;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  font-size: 25px;
  flex-shrink: 0;
  cursor: pointer;
}
.play-welcome {
  justify-content: flex-start;
  background: #edf3e5;
  border-radius: 24px;
  padding: 22px;
  line-height: 1.7;
  margin: 18px 0;
}
.play-welcome p {
  margin: 6px 0;
}
.play-guide {
  font-size: 58px;
}
.play-how {
  padding: 15px 0;
  color: #456b5e;
  font-weight: 700;
  flex-wrap: wrap;
}
.hub-adult {
  border-top: 1px solid #dfe4d6;
  margin-top: 22px;
  padding-top: 16px;
  font-size: 13px;
  line-height: 1.7;
}
.hub-adult summary {
  cursor: pointer;
  color: #557066;
}
.play-dots {
  gap: 8px;
  margin: 12px 0;
}
.play-dots i {
  width: 22px;
  height: 8px;
  background: #e2e6d7;
  border-radius: 8px;
  font-style: normal;
  font-size: 11px;
  text-align: center;
}
.play-dots .current {
  background: #e6b75c;
  width: 38px;
}
.play-dots .done {
  background: #80bbaa;
  height: 18px;
  color: #fff;
}
.play-caption {
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  max-width: 550px;
  margin: 12px auto;
}
.play-workspace {
  position: relative;
  isolation: isolate;
  height: 195px;
  margin: 18px 0;
  background: linear-gradient(#ddf0e8 0%, #eaf4e8 62%, #d0dfb5 62%);
  border-radius: 26px;
  overflow: hidden;
}
.play-cloud {
  position: absolute;
  top: 20px;
  left: 30px;
  width: 100px;
  height: 26px;
  border-radius: 50%;
  background: #fff8;
  box-shadow:
    200px 15px 0 5px #ffffff70,
    360px -2px 0 -3px #ffffff65;
}
.play-destination {
  position: absolute;
  right: 24%;
  bottom: 12px;
  width: 125px;
  text-align: center;
}
.play-destination .play-picture {
  width: 120px;
  height: 125px;
  filter: drop-shadow(0 8px 0 #69916722);
}
.play-destination span {
  display: block;
  font-size: 12px;
  color: #426255;
  font-weight: 700;
}
.play-demo {
  position: absolute;
  left: 19%;
  top: 25px;
  width: 75px;
  text-align: center;
  animation: play-demo 2.4s ease-in-out infinite;
}
.play-demo b {
  display: block;
  font-size: 23px;
}
.play-placed {
  display: flex;
  position: absolute;
  right: 14px;
  top: 12px;
}
.play-placed .play-picture {
  width: 35px;
  height: 35px;
}
.play-picture {
  display: block;
  width: 100%;
  height: 100%;
}
.play-objects {
  align-items: stretch;
  gap: 16px;
}
.play-object {
  position: relative;
  width: 140px;
  min-height: 145px;
  padding: 12px 20px;
  border: 2px solid #dae2d0;
  border-radius: 22px;
  background: #fffdf3;
  cursor: pointer;
  box-shadow: 0 5px 0 #e2e7d7;
  color: #385e52;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.play-object .play-picture {
  width: 94px;
  height: 92px;
  margin: auto;
}
.play-object span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}
.play-object:hover {
  transform: translateY(-4px);
}
.play-object.suggested {
  border-color: #d6a640;
  background: #fff5d3;
  box-shadow: 0 5px 0 #e9d6a0;
}
.play-object i {
  position: absolute;
  bottom: -10px;
  right: -4px;
  font-style: normal;
  font-size: 29px;
  animation: play-point 1.2s ease-in-out infinite;
}
.play-object:disabled {
  cursor: default;
  opacity: 0.72;
}
.play-object.collected {
  opacity: 0.3;
  transform: scale(0.94);
}
.play-feedback {
  min-height: 44px;
  text-align: center;
  color: #376959;
  font-size: 15px;
  line-height: 1.5;
  margin: 22px auto 12px;
}
.play-audio-note {
  display: block;
  text-align: center;
  color: #708174;
  line-height: 1.5;
  margin-top: 16px;
  font-size: 11px;
}
.play-celebrate {
  padding: 28px 0;
  background: #e7efde;
  border-radius: 24px;
  margin: 20px 0;
}
.play-celebrate svg {
  width: 90px;
  height: 95px;
}
#play-arrival {
  position: absolute;
  width: 65px;
  height: 65px;
  right: 29%;
  top: 20px;
  animation: play-arrival 0.65s ease-out both;
}
.play-workspace [hidden] {
  display: none;
}
.support-note {
  background: #e8f0df;
  border-radius: 20px;
  padding: 22px;
  line-height: 1.7;
}
.support-note small {
  color: #59715e;
}
.support-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.support-skills article {
  border-bottom: 1px solid #dfe4d6;
  padding: 10px 4px;
}
.support-skills strong,
.support-skills span,
.support-skills small {
  display: block;
  margin: 5px 0;
}
.support-skills span {
  color: #508374;
  font-size: 13px;
}
.support-skills small {
  color: #6e7c6a;
  font-size: 11px;
}
.starter-kit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: #f5e8ba;
  border-radius: 18px;
  margin: 14px 0 18px;
}
.starter-kit p {
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0;
}
.wardrobe-trial {
  border-top: 1px solid #dde4d4;
  margin-top: 14px;
  padding-top: 12px;
}
.wardrobe-trial summary {
  cursor: pointer;
  font-weight: 700;
}
.trial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.trial-item {
  border: 1px solid #d5e0ce;
  background: #f2f5e9;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  font-size: 22px;
}
.trial-item[aria-pressed="true"] {
  border: 2px solid #609583;
  background: #dae9d7;
}
.trial-status {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  font-size: 11px;
  background: #fff0cb;
  color: #775927;
  padding: 6px 10px;
  border-radius: 16px;
  white-space: nowrap;
  z-index: 2;
}
.pack-detail .form-actions {
  gap: 8px;
}
.wardrobe-layout .pack-detail {
  min-height: 118px;
}
@keyframes play-demo {
  0%,
  20%,
  100% {
    transform: translate(0, 0);
  }
  65% {
    transform: translate(65px, 25px) rotate(8deg);
  }
}
@keyframes play-point {
  50% {
    transform: translateY(-7px);
  }
}
@keyframes play-arrival {
  from {
    transform: translate(-130px, 70px) rotate(-20deg);
    opacity: 0;
  }
  to {
    transform: translate(0, 16px);
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .play-welcome {
    padding: 16px;
    gap: 12px;
  }
  .play-guide {
    font-size: 38px;
  }
  .play-caption {
    font-size: 15px;
  }
  .play-workspace {
    height: 164px;
  }
  .play-objects {
    gap: 8px;
  }
  .play-object {
    width: 31%;
    min-height: 117px;
    padding: 9px 5px;
    border-radius: 17px;
  }
  .play-object .play-picture {
    width: 72px;
    height: 72px;
  }
  .play-object span {
    font-size: 12px;
  }
  .play-destination {
    right: 19%;
    width: 105px;
  }
  .play-destination .play-picture {
    width: 95px;
    height: 100px;
  }
  .play-demo {
    left: 13%;
    width: 60px;
  }
  .play-how {
    gap: 12px;
    font-size: 13px;
  }
  .support-skills {
    grid-template-columns: 1fr;
  }
  .starter-kit {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .starter-kit button {
    width: 100%;
  }
  .play-heading h2 {
    font-size: 23px;
  }
  .play-listen {
    width: 48px;
    height: 48px;
  }
  .play-celebrate svg {
    width: 70px;
    height: 75px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .play-demo,
  .play-object i,
  #play-arrival {
    animation: none;
  }
  .play-object {
    transition: none;
  }
}
