/* Otter Flow — screens: visibility, HUD, map. */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 4;
  pointer-events: none;
}
.screen .pin {
  pointer-events: auto;
}
body[data-screen='start'] #scr-start,
body[data-screen='menu'] #scr-menu,
body[data-screen='map'] #scr-map,
body[data-screen='game'] #scr-game {
  display: block;
}

/* top-right controls: hidden only on the start screen; pause only in the game */
#btnPause,
#btnSound,
#btnSettings {
  z-index: 30;
}
body[data-screen='start'] #btnSound,
body[data-screen='start'] #btnSettings,
body:not([data-screen='game']) #btnPause {
  display: none;
}

#btnStart > span {
  animation: tapPulse 1.8s ease-in-out infinite;
}
@keyframes tapPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

/* HUD: portrait = chip + panel + logo, landscape = one bar */
.port .hud-land,
.land .hud-port,
.land .hud-port-lv,
.land .game-logo {
  display: none;
}
.hud > span,
.hud > .txt {
  position: static;
  display: block;
}
.hud > .hud-stars {
  display: flex;
} /* the star row keeps its flex layout (the rule above hid the stars) */
.hud-port {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4%;
  padding-top: 4%;
}
.hud-port .hud-moves {
  font-size: 1em;
}
.hud-port .hud-stars {
  height: 38%;
}
.hud-port-lv {
  z-index: 6;
  width: max-content !important;
  min-width: calc(var(--w) * var(--W) * var(--u) * 0.01px);
  max-width: calc(31.3 * var(--W) * var(--u) * 0.01px);
}
.hud-port-lv > span {
  max-width: none;
  margin: 0;
}
.hud-land {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 1%;
}
.hud-land .hud-logo {
  height: 72%;
  width: auto;
}
.hud-land .sep {
  width: calc(var(--u) * 3px);
  height: 50%;
  background: rgba(242, 181, 68, 0.55);
  border-radius: 2px;
}
.hud-land .hud-stars {
  height: 50%;
}
.hud-stars {
  display: flex;
  gap: 6%;
  aspect-ratio: 3.6;
}
.hud-stars .st {
  flex: 1;
  background: center / contain no-repeat url(../assets/img/star.webp);
}
.hud-stars .st.off {
  background-image: url(../assets/img/star-empty.webp);
}
.hud-moves em {
  font-style: normal;
  color: #7ff6f0;
}
.hud-lv {
  color: #ffd76a;
}
.pressure {
  border-radius: 99px;
  background: rgba(6, 18, 34, 0.8);
  box-shadow: inset 0 0 0 calc(var(--u) * 3px) #f2b544;
  overflow: hidden;
}
.pressure > i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #22c9c4, #7ff6f0);
  border-radius: 99px;
}

/* map */
.map-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.map-title > small {
  position: absolute;
  top: 8%;
  height: 30%;
  font-size: 0.62em;
  display: flex;
  align-items: center;
  color: #ffd76a;
}
.map-title > b {
  position: absolute;
  top: 36%;
  bottom: 14%;
  left: calc(var(--hpx) * 0.25);
  right: calc(var(--hpx) * 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68em;
}
.map-title > small {
  display: none;
}
.map-title > b {
  top: 22%;
  bottom: 22%;
}
.map-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6%;
}
.map-stars > i {
  height: 72%;
  aspect-ratio: 1;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.map-stars > .txt {
  font-size: 1em;
}
.map-field {
  z-index: 5;
}
.map-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.map-path path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-path .dry {
  opacity: 0.28;
}
.map-path .wet {
  opacity: 0.95;
}
.map-grid {
  position: absolute;
  inset: 0;
}
.lv-node {
  position: absolute;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  background: center / contain no-repeat url(../assets/img/node-done.webp);
}
.lv-node.current {
  background-image: url(../assets/img/node-current.webp);
}
.lv-node.locked {
  background-image: url(../assets/img/node-locked.webp);
  cursor: default;
}
.lv-node > b {
  position: absolute;
  inset: 25% 18% 23%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}
.lv-node > .lv-st {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 74%;
  height: 26%;
  display: flex;
  justify-content: center;
  gap: 2%;
}
.lv-node > .lv-st > i {
  flex: 0 0 30%;
  background: center / contain no-repeat url(../assets/img/star.webp);
}
.lv-node > .lv-st > i.off {
  background-image: url(../assets/img/star-empty.webp);
}
.lv-node > .lv-lock {
  position: absolute;
  left: 36%;
  right: 36%;
  top: 72%;
  height: 30%;
  background: center / contain no-repeat url(../assets/img/lock-bare.webp);
}
.lv-node > .lv-otter {
  position: absolute;
  right: -34%;
  top: -26%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: url(../assets/img/otter-idle.webp) 50% 4% / 210% no-repeat #0f2c44;
  box-shadow: 0 0 0 calc(var(--u) * 4px) #f2b544;
}
.lv-node:active {
  transform: translate(-50%, -50%) scale(0.94);
}
/* End of css/screens.css (complete file). */
