#zoomSlider {
  width: 90px;
  accent-color: #8cdac8;
  height: 20px;
  cursor: pointer;
}
.intro-brand small {
  display: block;
  font:
    400 0.65rem/1.6 "Segoe UI",
    sans-serif;
  max-width: 300px;
  margin: 7px 0 0 26px;
  color: #c1ded6;
  letter-spacing: 0.1px;
}
.intro-slide {
  transition-duration: 0.8s;
}
.intro-slide > img {
  transition: transform 4.8s cubic-bezier(0.2, 0.25, 0.4, 1);
  transform: scale(1.03) translateX(-0.6%);
}
.intro-slide.active > img {
  transform: scale(1.14) translateX(0.7%);
}
.encounter-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.sea-encounter {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background: none;
  border: 0;
  padding: 0;
  color: #c9eee3;
  transition:
    left 0.1s linear,
    top 0.1s linear;
  filter: drop-shadow(0 3px 5px #071a22cc);
}
.sea-encounter[hidden],
.encounter-layer[hidden] {
  display: none !important;
}
.sea-encounter:focus-visible {
  outline: 2px solid #d7e9a9;
  outline-offset: 4px;
  border-radius: 7px;
}
.sailing-ship {
  width: 66px;
  height: 52px;
}
.sailing-icon {
  display: block;
  animation: sail-bob 2.8s ease-in-out infinite;
}
.sailing-icon svg {
  width: 64px;
  height: 48px;
}
.sailing-ship::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 40px;
  width: 30px;
  height: 6px;
  border-top: 1px solid #9cded866;
  border-bottom: 1px solid #9cded833;
  transform: skewX(-30deg);
  animation: wake 1.7s ease-in-out infinite;
}
.sea-animal {
  width: 46px;
  height: 42px;
}
.sea-animal svg {
  width: 45px;
  height: 35px;
  animation: life-drift 3.5s ease-in-out infinite;
}
.encounter-name {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 8px;
  border: 1px solid #a7d2be44;
  border-radius: 5px;
  background: #082630ee;
  font-size: 0.65rem;
  display: none;
}
.sea-encounter:hover .encounter-name,
.sea-encounter:focus-visible .encounter-name {
  display: block;
}
.life-explorer {
  padding: 6px 16px 0;
  text-align: center;
  font-size: 0.6rem;
  color: #749b9f;
  max-width: 100%;
  line-height: 1.7;
}
.life-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin: 7px 0;
}
.life-chips button {
  font-size: 0.65rem;
  border: 1px solid #a5d7c426;
  border-radius: 15px;
  background: #163b40;
  color: #b0d8c8;
  padding: 4px 9px;
}
.animal-fly {
  display: block;
  margin: 20px 0 0;
}
.meteor-event {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
}
.meteor-event[hidden] {
  display: none;
}
.meteor-redwash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 55%, #ed6d3d55, #a1162045);
  animation: red-horizon 8s ease-out both;
}
.meteor-active .workspace,
.meteor-active .topbar {
  filter: sepia(0.45) saturate(1.4) hue-rotate(315deg);
  transition: filter 1s;
}
.meteor-impact .workspace,
.meteor-impact .topbar {
  animation: impact-shake 0.8s ease-out;
}
.meteor-rock {
  position: absolute;
  left: 15%;
  top: 12%;
  width: 140px;
  height: 100px;
  pointer-events: auto;
  animation: meteor-flight 2.5s cubic-bezier(0.4, 0.05, 0.7, 1) forwards;
  filter: drop-shadow(0 0 18px #ff7b47);
  text-decoration: none;
  display: block;
}
.meteor-core {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 82px;
  line-height: 1;
  color: #fff2ca;
  transform: rotate(-10deg);
}
.meteor-tail {
  position: absolute;
  right: 45px;
  bottom: 42px;
  width: 220px;
  height: 26px;
  transform: rotate(28deg);
  transform-origin: right center;
  background: linear-gradient(90deg, transparent, #ff76328c, #fff1a3);
  border-radius: 100%;
  filter: blur(6px);
}
.meteor-message {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: min(350px, calc(100% - 40px));
  border: 1px solid #e5a47d66;
  border-radius: 12px;
  padding: 22px;
  background: #311f24ef;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 70px #180b1a88;
  pointer-events: auto;
  animation: meteor-message-enter 1.5s 1.7s both;
}
.meteor-message > span {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: #e2b29c;
}
.meteor-message > .meteor-open {
  display: block;
  color: #fff1cd;
  font:
    1.4rem/1.4 Georgia,
    serif;
  margin: 10px 0;
}
.meteor-message p {
  font-size: 0.7rem;
  color: #cda89e;
  line-height: 1.7;
  margin: 10px 0;
}
.meteor-close {
  position: absolute;
  right: 9px;
  top: 7px;
  font-size: 24px;
  color: #d6b5a4;
  background: none;
}
.meteor-sound {
  font-size: 0.65rem;
  background: #5c3732;
  border-radius: 5px;
  padding: 6px 9px;
  color: #efc9b0;
}
@keyframes sail-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-3px) rotate(2deg);
  }
}
@keyframes wake {
  50% {
    opacity: 0.4;
    transform: skewX(-30deg) scaleX(1.3);
  }
}
@keyframes life-drift {
  50% {
    transform: translateY(-2px) rotate(3deg);
  }
}
@keyframes meteor-flight {
  0% {
    transform: translate(-35vw, -25vh) rotate(18deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translate(52vw, 41vh) rotate(18deg);
    opacity: 1;
  }
}
@keyframes red-horizon {
  0% {
    opacity: 0;
  }
  35%,
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
@keyframes impact-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  15% {
    transform: translate(-3px, 2px);
  }
  30% {
    transform: translate(4px, -2px);
  }
  45% {
    transform: translate(-3px, -1px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  75% {
    transform: translate(-1px, 0);
  }
}
@keyframes meteor-message-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  #zoomSlider {
    width: 55px;
  }
  .globe-controls {
    gap: 4px;
  }
  .globe-controls button {
    width: 28px;
  }
  .globe-controls .details-button {
    padding-inline: 7px;
    font-size: 0.58rem;
  }
  .intro-brand small {
    font-size: 0.49rem;
    max-width: 185px;
    margin-left: 17px;
    line-height: 1.65;
  }
  .intro-top {
    gap: 8px;
  }
  .intro-brand {
    font-size: 1.45rem;
  }
  .intro-copy {
    top: 23%;
  }
  .intro-copy h2 {
    font-size: 2.3rem;
  }
  .life-explorer {
    font-size: 0.57rem;
  }
  .meteor-rock {
    width: 100px;
    height: 90px;
  }
  .meteor-core {
    font-size: 62px;
  }
  .meteor-message {
    right: 18px;
    bottom: 18px;
    padding: 19px;
    width: calc(100% - 36px);
  }
  .sailing-ship {
    width: 60px;
  }
}
@media (max-height: 650px) {
  .intro-brand small {
    font-size: 0.5rem;
  }
  .intro-copy {
    top: 27%;
  }
  .intro-copy h2 {
    font-size: 1.9rem;
  }
  .intro-copy p {
    font-size: 0.7rem;
  }
  .intro-ship {
    top: 27%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sailing-icon,
  .sea-animal svg,
  .sailing-ship::before {
    animation: none;
  }
  .meteor-impact .workspace,
  .meteor-impact .topbar {
    animation: none;
  }
  .meteor-rock {
    animation: none;
    left: 55%;
    top: 30%;
  }
  .meteor-redwash {
    animation: none;
    opacity: 0.45;
  }
  .meteor-message {
    animation: none;
  }
  .sea-encounter {
    transition: none;
  }
}

.meteor-core svg {
  width: 92px;
  height: 92px;
  display: block;
}
@media (max-width: 700px) {
  .meteor-core svg {
    width: 74px;
    height: 74px;
  }
}

.places-section[hidden], .country-places[hidden] { display: none; }
.meteor-rock { border: 0; padding: 0; background: transparent; cursor: pointer; }
.meteor-open { border: 0; padding: 0; background: transparent; text-align: left; cursor: pointer; }
.meteor-choices { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.meteor-choices a { text-decoration: none; }

#encounterDialog .country-hero img { object-fit: contain; background: #10232c; }
