/* A transparent rest scene on the real battlefield; the lower dock becomes camp controls. */
.field-rest-root {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  color: #153d4e;
  font-family: 'Nunito', sans-serif;
  --rest-progress: 0;
  --rest-twilight: 1;
}
.field-rest-root[hidden] {
  display: none !important;
}
.field-rest-root *,
.field-rest-root *::before,
.field-rest-root *::after {
  box-sizing: border-box;
}
.field-rest-experience {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
}
.field-rest-heading {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
  top: 22px;
  text-align: center;
  color: #fff5d6;
  filter: drop-shadow(0 2px 2px #16374b80);
}
.field-rest-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #e8cb86;
}
.field-rest-heading h2 {
  margin: 7px 0 5px;
  font:
    clamp(24px, 4vw, 38px) / 1.05 'Lilita One',
    sans-serif;
  font-weight: 400;
}
.field-rest-heading p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.field-rest-root[data-rest-phase='ready'] .field-rest-heading {
  color: #214e5c;
  filter: drop-shadow(0 1px #fff8e4);
}
.field-rest-root[data-rest-phase='ready'] .field-rest-kicker {
  color: #887047;
}
.field-rest-scene {
  position: absolute;
  top: 21%;
  height: 32%;
  left: 6%;
  right: 6%;
  z-index: 1;
  pointer-events: none;
}
.field-rest-tent {
  position: absolute;
  width: 36%;
  height: 85%;
  bottom: 0;
  object-fit: contain;
  filter: brightness(calc(1 - var(--rest-twilight) * 0.32)) drop-shadow(0 5px 2px #1b354a20);
}
.field-rest-tent.tent-left {
  left: 0;
  transform: rotate(-5deg);
}
.field-rest-tent.tent-right {
  right: 0;
  transform: scaleX(-1) scale(0.8);
}
.field-rest-squad {
  position: absolute;
  bottom: -4%;
  left: 17%;
  right: 17%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 74%;
}
.field-rest-soldier {
  position: relative;
  width: 24%;
  height: 100%;
  flex-shrink: 0;
  transform-origin: 50% 95%;
  animation: field-rest-breathe 3.8s ease-in-out var(--rest-delay) infinite;
  filter: brightness(calc(1 - var(--rest-twilight) * 0.28)) drop-shadow(0 5px 2px #102d492a);
}
.field-rest-soldier svg,
.field-rest-soldier img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  overflow: visible;
}
.field-rest-soldier.soldier-0 {
  transform: rotate(-4deg);
}
.field-rest-soldier.soldier-1 {
  height: 84%;
  transform: rotate(9deg);
}
.field-rest-soldier.soldier-2 {
  height: 94%;
}
.field-rest-soldier.soldier-3 {
  height: 85%;
  transform: rotate(-7deg);
}
.field-rest-soldier.soldier-4 {
  height: 90%;
}
.field-rest-snore {
  position: absolute;
  right: 0;
  top: 9%;
  color: #d6efff;
  font:
    17px 'Lilita One',
    sans-serif;
  animation: field-rest-snore 3s ease-in-out infinite;
}
.field-rest-snore span {
  position: absolute;
  right: -10px;
  top: -13px;
  font-size: 12px;
}
.field-rest-root[data-rest-phase='ready'] .field-rest-snore {
  display: none;
}
.field-rest-moon {
  position: absolute;
  right: 7%;
  top: -35%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: -5px 3px 0 1px #f9eec0;
  opacity: var(--rest-twilight);
}
.field-rest-fire {
  position: absolute;
  width: 40px;
  height: 40px;
  left: calc(50% - 20px);
  bottom: -13%;
}
.field-rest-fire .fire-halo {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffbe6a55, transparent 68%);
  animation: field-rest-glow 2.8s ease-in-out infinite alternate;
}
.field-rest-fire b {
  position: absolute;
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: #5c4431;
  bottom: 2px;
  left: 4px;
  transform: rotate(17deg);
}
.field-rest-fire b:nth-of-type(2) {
  transform: rotate(-17deg);
  background: #85603d;
}
.field-rest-fire i {
  position: absolute;
  bottom: 7px;
  left: 10px;
  width: 21px;
  height: 30px;
  background: #ff9446;
  border-radius: 55% 10% 45% 35%;
  transform: rotate(-10deg);
  transform-origin: 50% 100%;
  animation: field-rest-flame 1.2s ease-in-out infinite alternate;
}
.field-rest-fire i:nth-of-type(2) {
  left: 17px;
  height: 24px;
  width: 14px;
  background: #ffd575;
  animation-delay: -0.6s;
}
.field-rest-fire i:nth-of-type(3) {
  bottom: 8px;
  left: 15px;
  height: 16px;
  width: 9px;
  background: #fff0b1;
  animation-delay: -0.2s;
}
.field-rest-fire em {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffdc8a;
  left: 18px;
  bottom: 20px;
  animation: field-rest-ember 2.5s linear infinite;
}
.field-rest-fire em:last-child {
  left: 26px;
  animation-delay: -1.2s;
}
.field-rest-controls {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  padding: 14px 18px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #f7f0dfeb, #f7f0df 26%);
  border-top: 1px solid #fff4d3;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 35px #112e4426;
  max-height: 57%;
  overflow-y: auto;
}
.field-rest-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
}
.field-rest-status > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-rest-status-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #224f67;
  color: #f9dda0;
  font-size: 22px;
}
.field-rest-wallet {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #22586b;
  font-size: 18px;
}
.field-rest-wallet img {
  width: 23px;
  height: 27px;
}
.field-rest-copy {
  margin: 6px 0 11px;
  font-size: 12px;
  line-height: 1.4;
  color: #657875;
}
.field-rest-night-track {
  height: 4px;
  border-radius: 8px;
  background: #d8dece;
  overflow: hidden;
  margin-top: 8px;
}
.field-rest-night-track span {
  display: block;
  height: 100%;
  width: calc(var(--rest-progress) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #508b9c, #e8b757);
}
.field-rest-offers {
  display: grid;
  grid-template-columns: repeat(var(--rest-offer-count, 3), minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.field-rest-root button {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.field-rest-root button:focus-visible {
  outline: 3px solid #2c93b6;
  outline-offset: 3px;
}
.field-rest-root button:disabled {
  cursor: default;
  opacity: 0.65;
}
.field-rest-offer {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 5px;
  min-width: 0;
  border: 1px solid #c7d7ce;
  border-radius: 14px;
  background: #fffaf0;
  padding: 8px 7px;
  color: #204d5c;
  box-shadow: 0 3px 0 #bdcaba;
}
.field-rest-offer-figure {
  width: 42px;
  height: 68px;
  flex-shrink: 0;
}
.field-rest-offer-figure svg,
.field-rest-offer-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.field-rest-offer-copy {
  flex: 1;
  min-width: 0;
}
.field-rest-offer-copy small {
  display: block;
  font-size: 9px;
  line-height: 1.3;
  color: #738b89;
  font-weight: 800;
}
.field-rest-offer-copy > strong {
  display: block;
  font:
    15px/1.1 'Lilita One',
    sans-serif;
  margin: 3px 0 5px;
  font-weight: 400;
  overflow-wrap: break-word;
}
.field-rest-offer-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 900;
  color: #7e5b20;
}
.field-rest-offer-price > span {
  display: flex;
  align-items: center;
  gap: 2px;
}
.field-rest-offer-price img {
  width: 16px;
  height: 19px;
}
.field-rest-tools {
  display: flex;
  gap: 8px;
}
.field-rest-tools button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #c1d1c7;
  border-radius: 11px;
  background: #edf0e2;
  color: #315c60;
  font-size: 12px;
  font-weight: 900;
  padding: 6px;
}
.field-rest-tools img {
  width: 20px;
  height: 22px;
}
.field-rest-tools button > span:first-child:not(.field-rest-badge) {
  font-size: 22px;
}
.field-rest-badge {
  border-radius: 7px;
  padding: 1px 4px;
  color: #fff9de;
  background: #347e8c;
  font-size: 10px;
}
.field-rest-departure {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.field-rest-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  flex: 1;
  min-height: 58px;
  border: 2px solid #fff4b9;
  border-radius: 15px;
  background: linear-gradient(#ffeb9c, #efbd4b);
  color: #66451f;
  padding: 8px 15px;
  box-shadow: 0 4px 0 #af8940;
  animation: field-rest-arrive 0.5s ease-out both;
}
.field-rest-next small {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.field-rest-next strong {
  display: block;
  font:
    21px/1.1 'Lilita One',
    sans-serif;
  font-weight: 400;
  margin-top: 2px;
}
.field-rest-next > span:last-child {
  font-size: 28px;
}
.field-rest-map {
  border: 0;
  padding: 9px 2px;
  background: transparent;
  color: #4d706f;
  box-shadow: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.field-rest-wait {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-height: 45px;
  font-size: 12px;
  color: #70817a;
}
.field-rest-orbit {
  width: 14px;
  height: 14px;
  border: 2px solid #ced8c5;
  border-top-color: #8c9e86;
  border-radius: 50%;
  animation: field-rest-spin 2s linear infinite;
}
.field-rest-finale {
  flex: 1;
  margin: 5px 0;
  font-weight: 800;
  color: #31625e;
  font-size: 13px;
}
.field-rest-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes field-rest-breathe {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -2px;
  }
}
@keyframes field-rest-snore {
  0% {
    opacity: 0;
    translate: 0 3px;
  }
  35% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    translate: 3px -9px;
  }
}
@keyframes field-rest-glow {
  from {
    opacity: 0.65;
    scale: 0.92;
  }
  to {
    opacity: 1;
    scale: 1.06;
  }
}
@keyframes field-rest-flame {
  to {
    scale: 0.85 1.08;
    rotate: 7deg;
  }
}
@keyframes field-rest-ember {
  from {
    opacity: 0.8;
    translate: 0 0;
  }
  to {
    opacity: 0;
    translate: 8px -30px;
  }
}
@keyframes field-rest-spin {
  to {
    rotate: 360deg;
  }
}
@keyframes field-rest-arrive {
  from {
    opacity: 0;
    translate: 0 7px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 480px) {
  .field-rest-controls {
    padding: 12px;
    max-height: 58%;
  }
  .field-rest-heading {
    top: 16px;
  }
  .field-rest-offers {
    gap: 6px;
  }
  .field-rest-offer {
    display: block;
    text-align: center;
    padding: 5px;
  }
  .field-rest-offer-figure {
    display: none;
  }
  .field-rest-offer-copy > strong {
    font-size: 14px;
  }
  .field-rest-offer-copy small {
    font-size: 8px;
  }
  .field-rest-offer-price {
    font-size: 10px;
  }
  .field-rest-tools {
    gap: 5px;
  }
  .field-rest-tools button {
    font-size: 10px;
  }
  .field-rest-next strong {
    font-size: 18px;
  }
  .field-rest-scene {
    top: 22%;
    height: 25%;
    left: 1%;
    right: 1%;
  }
  .field-rest-map {
    font-size: 11px;
  }
}
@media (max-height: 520px) and (min-width: 650px) {
  .field-rest-controls {
    width: 49%;
    align-self: flex-end;
    height: 100%;
    max-height: 100%;
    border-radius: 22px 0 0 22px;
    padding: 12px;
  }
  .field-rest-heading {
    right: 51%;
    top: 15px;
    left: 8px;
  }
  .field-rest-heading h2 {
    font-size: 25px;
  }
  .field-rest-scene {
    left: 2%;
    right: 52%;
    top: 37%;
    height: 42%;
  }
  .field-rest-offers {
    grid-template-columns: repeat(var(--rest-offer-count, 3), minmax(0, 1fr));
  }
  .field-rest-offer-figure {
    display: none;
  }
  .field-rest-next strong {
    font-size: 18px;
  }
  .field-rest-copy {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .field-rest-root *,
  .field-rest-root *::before,
  .field-rest-root *::after {
    animation: none !important;
    transition: none !important;
  }
}
.field-rest-root.is-reduced-motion *,
.field-rest-root.is-reduced-motion *::before,
.field-rest-root.is-reduced-motion *::after {
  animation: none !important;
  transition: none !important;
}

/* Rest scenery fills the field. Commands stay in the same bottom hand dock. */
body.is-field-rest .field-commands,
body.is-field-rest #rally {
  display: none !important;
}
body.is-field-rest .field-rest-heading {
  top: 7%;
}
body.is-field-rest .field-rest-scene {
  top: 31%;
  height: 40%;
  left: 11%;
  right: 11%;
}
body.is-field-rest .field-rest-heading h2 {
  font-size: clamp(25px, 4vw, 39px);
}
@media (max-height: 550px) and (min-width: 600px) {
  body.is-field-rest .field-rest-heading {
    top: 5%;
  }
  body.is-field-rest .field-rest-heading h2 {
    font-size: 24px;
  }
  body.is-field-rest .field-rest-scene {
    top: 32%;
    height: 43%;
  }
}
.field-rest-camp-menu {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.field-rest-camp-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.field-rest-camp-menu svg {
  width: 55px;
  height: 65px;
  border-radius: 10px;
}
.field-rest-camp-menu span {
  flex: 1;
  display: grid;
  gap: 4px;
}
.field-rest-camp-menu small {
  font-size: 14px;
}
