.camp-big {
  height: auto;
  aspect-ratio: 3/2;
  border: 3px solid #73825a;
  border-radius: 5px;
  max-height: 530px;
  box-shadow: 0 8px 25px #193c3218;
}
.camp-diorama {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #54794b;
}
.camp-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  pointer-events: none;
}
.camp-building {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  transform: translate(-50%, -85%);
  border: 0;
  padding: 0;
  background: none;
  z-index: 3;
  image-rendering: pixelated;
  opacity: 1 !important;
}
.camp-building-art {
  display: block;
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 200% 100%;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 2px #25442a30);
}
.camp-building-art.state-0 {
  background-position: 0 0;
}
.camp-building-art.state-1 {
  background-position: 100% 0;
}
.camp-building-art.camp-fire-loop {
  background-size: 300% 100%;
  animation: campFireFrames 0.8s steps(1) infinite;
}
.camp-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.camp-embers i {
  position: absolute;
  top: 42%;
  left: 48%;
  width: 3%;
  aspect-ratio: 1;
  background: #ffcc64;
  box-shadow: 0 0 5px #ff912b;
  opacity: 0;
  animation: campEmberRise 1.8s ease-out infinite;
}
.camp-embers i:nth-child(2) {
  left: 56%;
  animation-delay: 0.6s;
}
.camp-embers i:nth-child(3) {
  left: 40%;
  animation-delay: 1.2s;
}
@keyframes campFireFrames {
  0%,
  100% {
    background-position: 0 0;
  }
  25%,
  75% {
    background-position: 50% 0;
  }
  50% {
    background-position: 100% 0;
  }
}
@keyframes campEmberRise {
  15% {
    opacity: 0.9;
  }
  100% {
    transform: translate(5px, -35px) scale(0.4);
    opacity: 0;
  }
}
.camp-label {
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #143c2ee8;
  color: #f3e6bd;
  padding: 5px 9px;
  border: 1px solid #a5af6c;
  font-size: 11px;
  border-radius: 2px;
}
.camp-action {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #f4ebcf;
  color: #557046;
  padding: 3px 7px;
  font-size: 9px;
  opacity: 0;
  transition: opacity 0.2s;
  border: 1px solid #c7ce9a;
}
.camp-building:hover:enabled .camp-action,
.camp-building:focus-visible .camp-action {
  opacity: 1;
}
.camp-building:hover:enabled .camp-building-art {
  filter: drop-shadow(0 0 6px #e4f5ac);
}
.camp-building:disabled .camp-label {
  color: #aebd97;
}

.camp-visitor {
  position: absolute;
  left: 49%;
  top: 85%;
  width: 11%;
  height: 16%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  z-index: 4;
  filter: drop-shadow(0 3px 2px #22482a30);
  animation: campIdle 3s ease-in-out infinite;
}
.camp-warmth {
  position: absolute;
  left: 51%;
  top: 72%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #efb166;
  filter: blur(20px);
  opacity: 0.26;
  z-index: 2;
  pointer-events: none;
  animation: campGlow 2s ease-in-out infinite alternate;
}
.camp-help {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  background: #123c2ecb;
  color: #f0e6bb;
  padding: 5px 11px;
  border: 1px solid #99ad75;
  z-index: 5;
}
.camp-decoration {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  transform: translate(-50%, -85%);
  z-index: 2;
  pointer-events: none;
}
.decoration-art {
  position: absolute;
  inset: 0;
  display: block;
  background-repeat: no-repeat;
  background-size: 300% 100%;
  image-rendering: pixelated;
}
.decoration-art.cell-0 {
  background-position: 0 0;
}
.decoration-art.cell-1 {
  background-position: 50% 0;
}
.decoration-art.cell-2 {
  background-position: 100% 0;
}
.camp-decoration-shop {
  margin: 30px 0;
}
.decoration-shop-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.decoration-shop-card {
  border: 1px solid #d6dfc5;
  border-radius: 12px;
  background: #fffdf5;
  padding: 18px;
  text-align: center;
}
.decoration-shop-card.owned {
  border-color: #a8c27a;
  background: #f5f8ea;
}
.decoration-preview {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 10px;
}
.decoration-shop-card h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.decoration-shop-card p {
  font-size: 11px;
  color: #82916b;
  line-height: 1.8;
  min-height: 42px;
  margin-bottom: 16px;
}
.decoration-shop-card .btn {
  width: 100%;
  justify-content: center;
  padding: 11px 8px;
  font-size: 11px;
}
.decoration-shop-card small {
  display: block;
  color: #95a47b;
  font-size: 10px;
  margin-top: 12px;
}
@media (max-width: 640px) {
  .decoration-shop-cards {
    grid-template-columns: 1fr;
  }
  .decoration-shop-card {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 6px 12px;
    text-align: left;
  }
  .decoration-preview {
    grid-row: 1/5;
    width: 105px;
    height: 105px;
  }
  .decoration-shop-card p {
    min-height: 0;
    margin-bottom: 6px;
  }
  .decoration-shop-card h3 {
    margin: 0;
  }
  .decoration-shop-card small {
    margin-top: 4px;
  }
}
.camp-preview {
  border: 1px solid #d0dabb;
  height: 145px;
  background: #567d4c;
}
.camp-preview .camp-diorama {
  height: 100%;
  aspect-ratio: auto;
}
.hero .world-art {
  right: 0;
  bottom: 0;
  width: 62%;
  height: 100%;
  mask-image: linear-gradient(to right, transparent 0, #000 28%);
  opacity: 0.95;
}
.hero .world-art .camp-diorama {
  height: 100%;
  aspect-ratio: auto;
}
.hero .camp-map {
  object-position: center;
}
.hero .camp-visitor {
  width: 14%;
  height: 18%;
}
.travel-album {
  margin-top: 30px;
}
.place-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.place-card {
  background: #fff;
  border: 1px solid #dce4ce;
  border-radius: 9px;
  overflow: hidden;
  padding-bottom: 12px;
  box-shadow: 0 5px 15px #193c3205;
}
.place-card img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  image-rendering: pixelated;
  filter: saturate(0.45);
  opacity: 0.78;
  display: block;
}
.place-card.visited {
  border-color: #a8ba7b;
}
.place-card.visited img {
  filter: none;
  opacity: 1;
}
.place-card b {
  font-size: 12px;
  display: block;
  padding: 11px 10px 5px;
}
.place-card span {
  font-size: 10px;
  color: #95a182;
  padding: 0 10px;
}
.place-card.visited span {
  color: #688447;
}
.route-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 10px;
}
.route-choice {
  padding: 0 0 8px;
  background: #e8ecd7;
  border: 2px solid #c3cead;
  text-align: center;
  border-radius: 4px;
  overflow: hidden;
  opacity: 1 !important;
}
.route-choice.selected {
  border-color: #4f7847;
  background: #dce8bd;
  box-shadow: 0 0 0 1px #8fab66;
}
.route-choice img {
  height: 60px;
  width: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
  margin-bottom: 7px;
}
.route-choice b {
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}
.route-choice small {
  font-size: 8px;
  display: block;
  color: #81936b;
  padding: 0 3px;
  line-height: 1.6;
}
.selected-itinerary {
  font-size: 9px;
  color: #7c8e65;
  line-height: 1.8;
  margin: 7px 0 10px;
}
.trail-overlay .trail-dialog {
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}
.route-selection h2 {
  margin-bottom: 9px;
}
.route-selection p {
  margin-bottom: 9px;
}
.route-selection .eyebrow {
  font-size: 9px;
}
.biome-snow .trail-motes i {
  background: #fff;
  box-shadow: none;
  opacity: 0.5;
  animation: snowDrift 4s linear infinite;
}
.biome-blossom .trail-motes i {
  background: #ffd0d8;
  box-shadow: none;
  opacity: 0.5;
  animation: snowDrift 5s linear infinite;
}
.pixel-fox {
  height: 100%;
  width: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
.monster-pixel {
  display: block;
  height: 100%;
  width: 100%;
  background-image: url("../assets/pixel/monsters-v1.png");
  background-repeat: no-repeat;
  background-size: 300% 100%;
  image-rendering: pixelated;
}
.monster-0 {
  background-position: 0 0;
}
.monster-1 {
  background-position: 50% 0;
}
.monster-2 {
  background-position: 100% 0;
}
.card-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}
.scene .combatant .creature {
  height: 100px;
  width: 100px;
  filter: drop-shadow(0 5px 2px #213d2b40);
}
.scene .combatant.player .creature {
  height: 110px;
  width: 110px;
}
.scene-label {
  background: #163d30d9;
  color: #f3e2b8;
  border: 1px solid #a6b175;
}
.combatant .fighter-name {
  background: #f8f1d5d9;
  border-radius: 3px;
  padding: 3px;
  color: #456342;
}
.battle-top {
  border-bottom: 2px solid #8ba16a;
}
.scene {
  height: 255px;
}
.camp-items .upgrade {
  background: #fbfcf4;
  border-color: #d2debb;
}
.camp-items .upgrade .btn {
  border-radius: 3px;
}
.book-icon {
  background: #e1ead3;
  box-shadow: 2px 3px 0 #d0ddba;
}
.sidebar .companion-note {
  background: #eff3e5;
}
.route-home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.route-home-card {
  background: white;
  border: 1px solid #d4dfc1;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  padding: 0 0 12px;
}
.route-home-card img {
  height: 105px;
  object-fit: cover;
  width: 100%;
  image-rendering: pixelated;
  display: block;
}
.route-home-card b {
  display: block;
  font-size: 12px;
  margin: 12px 12px 6px;
}
.route-home-card small {
  font-size: 9px;
  color: #8c9d77;
  display: block;
  margin: 0 12px;
  line-height: 1.8;
}
.route-home-card:hover {
  border-color: #8ea769;
  box-shadow: 0 7px 20px #324d2710;
}
@keyframes campIdle {
  50% {
    transform: translate(-50%, -53%);
  }
}
@keyframes campGlow {
  to {
    opacity: 0.4;
  }
}
@keyframes snowDrift {
  to {
    transform: translate(7px, 55px);
    opacity: 0;
  }
}
@media (max-width: 900px) {
  .place-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .hero h2 {
    font-size: clamp(21px, 6.4vw, 25px);
    letter-spacing: 1px;
    text-shadow: 0 2px 5px #123b3240;
  }
  .route-home-card,
  .mode,
  .answer,
  .book {
    scroll-margin-bottom: 90px;
  }
  .camp-big {
    aspect-ratio: 3/2;
    max-height: none;
  }
  .camp-label {
    font-size: 8px;
    padding: 3px 5px;
    bottom: -5px;
  }
  .camp-action {
    font-size: 7px;
    padding: 3px 5px;
    bottom: -22px;
  }
  .camp-help {
    font-size: 8px;
    bottom: 6px;
    padding: 4px 8px;
  }
  .camp-pennant {
    font-size: 12px;
  }
  .camp-preview {
    height: 125px;
  }
  .hero .world-art {
    width: 64%;
    height: 95%;
    bottom: 0;
    right: 0;
    mask-image: linear-gradient(to right, transparent 0, #000 34%);
  }
  .place-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .place-card img {
    height: 100px;
  }
  .place-card b {
    font-size: 11px;
  }
  .place-card span {
    font-size: 9px;
  }
  .route-choice img {
    height: 54px;
  }
  .route-choice b {
    font-size: 10px;
  }
  .route-choice small {
    font-size: 7px;
  }
  .route-choices {
    gap: 6px;
  }
  .route-selection {
    padding: 15px 12px;
  }
  .route-selection h2 {
    font-size: 17px;
  }
  .route-selection p {
    font-size: 10px;
    line-height: 1.7;
  }
  .route-selection .btn {
    padding: 11px;
    font-size: 11px;
  }
  .route-selection .trail-intro-note {
    font-size: 8px;
  }
  .scene {
    height: 218px;
  }
  .scene .combatant .creature {
    height: 88px;
    width: 88px;
  }
  .scene .combatant.player .creature {
    height: 97px;
    width: 97px;
  }
  .route-home-cards {
    gap: 8px;
  }
  .route-home-card img {
    height: 75px;
  }
  .route-home-card b {
    font-size: 10px;
    margin: 9px 8px 5px;
  }
  .route-home-card small {
    font-size: 8px;
    margin: 0 8px;
  }
  .travel-album {
    margin-top: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .camp-visitor,
  .camp-warmth,
  .camp-fire-loop,
  .camp-embers i,
  .trail-motes i {
    animation: none !important;
  }
}
.camp-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  margin: 22px 0;
}
.camp-map-panel {
  min-width: 0;
  background: #173f31;
  border: 1px solid #8eab78;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px #17382c20;
}
.camp-map-toolbar,
.camp-camera-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f2ebcf;
  padding: 12px 16px;
  font-size: 12px;
}
.camp-map-toolbar {
  border-bottom: 1px solid #b8ce8e44;
}
.camp-camera-controls {
  background: #153b2e;
}
.camp-camera-controls button {
  color: #fff6d7;
  border: 1px solid #a8bd8055;
  min-width: 44px;
  min-height: 38px;
}
.camp-camera-controls span {
  font-size: 11px;
  opacity: 0.8;
}
.camp-world-scroll {
  height: 450px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #a7bf83 #163e30;
  position: relative;
}
.camp-world {
  height: 100%;
  width: max(100%, 675px);
}
.camp-world .camp-diorama {
  height: 100%;
  aspect-ratio: auto;
}
.camp-world .camp-map {
  object-fit: fill;
}
.camp-world .camp-building {
  cursor: pointer;
  outline-offset: 4px;
}
.camp-world .camp-building.selected .camp-building-art {
  filter: drop-shadow(0 0 6px #f8eda0);
}
.camp-world .camp-building .camp-label {
  font-size: 12px;
  border-radius: 6px;
  padding: 6px 10px;
}
.camp-world .camp-building .camp-action {
  display: none;
}
.camp-world .camp-help {
  display: none;
}
.camp-building-panel {
  padding: 22px;
  background: #fffcf2;
  border: 1px solid #d3ddc2;
  border-radius: 18px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.camp-building-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.camp-building-tabs button {
  padding: 8px 9px;
  font-size: 10px;
  border: 1px solid #d4dec0;
  border-radius: 8px;
  background: #edf1e4;
  color: #4c6347;
}
.camp-building-tabs button[aria-pressed="true"] {
  background: #245b43;
  color: #fff7d8;
  border-color: #245b43;
}
.camp-building-panel h2 {
  font-size: 23px;
  margin: 0;
}
.camp-building-panel p {
  font-size: 12px;
  line-height: 1.8;
  color: #758064;
  margin: 0;
}
.camp-building-panel .camp-building-status {
  color: #446a4b;
  padding: 12px;
  background: #eef2e1;
  border-radius: 10px;
}
.camp-building-panel .btn {
  justify-content: center;
  margin-top: auto;
}
.camp-building-panel small {
  color: #8b947b;
  line-height: 1.6;
  font-size: 10px;
}
.camp-building-panel .eyebrow {
  margin: 0;
  font-size: 10px;
}
@media (max-width: 850px) {
  .camp-workspace {
    grid-template-columns: 1fr;
  }
  .camp-world-scroll {
    height: 390px;
  }
  .camp-world {
    width: max(100%, 585px);
  }
  .camp-building-panel {
    padding: 18px;
    gap: 10px;
  }
  .camp-building-tabs {
    margin-bottom: 2px;
  }
  .camp-building-panel .btn {
    margin-top: 4px;
  }
  .camp-building-panel h2 {
    font-size: 21px;
  }
}
@media (max-width: 400px) {
  .camp-world-scroll {
    height: 340px;
  }
  .camp-world {
    width: 510px;
  }
  .camp-workspace {
    gap: 14px;
  }
  .camp-camera-controls span {
    font-size: 10px;
  }
}
.camp-camera-controls button {
  background: #245b43 !important;
  color: #fff6d7 !important;
}
.camp-world-scroll:focus-visible {
  outline: 3px solid #d5df9b;
  outline-offset: -4px;
}
.camp-camera-controls button:disabled {
  opacity: 0.35;
}
.camp-building-panel {
  scroll-margin-bottom: 90px;
}
.camp-fire-inset {
  position: absolute;
  left: 27%;
  top: 34%;
  width: 46%;
  height: 46%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.camp-building.fire .camp-label {
  left: 96%;
  bottom: 4%;
}
