/* Locally hosted flags, original postcard illustrations and Natural Earth land. */
.world-explorer {
  --explorer-ink: #41636a;
  --explorer-blue: #deedf0;
  min-width: 0;
}
.explorer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 12px 0 22px;
}
.explorer-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #748b81;
}
.explorer-heading h2 {
  font: 500 40px Fredoka;
  margin: 8px 0;
  color: #41646b;
}
.explorer-heading p {
  color: #6c7d76;
  margin: 8px 0;
  font-size: 14px;
}
.passport-pill {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 3px 10px;
  align-items: center;
  flex-shrink: 0;
  background: #ede7f5;
  border: 1px solid #e1d8ed;
  border-radius: 18px;
  padding: 13px 17px;
  text-align: left;
  color: #716088;
}
.passport-pill > span {
  font-size: 34px;
  grid-row: span 2;
}
.passport-pill b {
  font: 500 25px Fredoka;
}
.passport-pill small {
  font-size: 10px;
}
.explorer-tabs {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid #dfe5db;
  margin: 0 0 24px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.explorer-tabs button {
  padding: 12px 20px;
  background: #efefe5;
  color: #667664;
  font-size: 14px;
  min-height: 44px;
}
.explorer-tabs button[aria-pressed="true"] {
  background: #dfecef;
  color: #40656d;
  box-shadow: inset 0 -3px #accdd1;
}
.explorer-map-wrap {
  background: #f2f3e7;
  border: 1px solid #dce3d1;
  border-radius: 25px;
  overflow: hidden;
}
.explorer-map-caption {
  padding: 23px 28px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.explorer-map-caption h3 {
  font: 500 27px Fredoka;
  margin: 7px 0;
  color: #4a6d65;
}
.explorer-plane {
  font-size: 44px;
  color: #a18cb3;
  animation: explorer-drift 7s ease-in-out infinite;
}
.explorer-map {
  position: relative;
  margin: 0 20px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
}
.explorer-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.explorer-map button {
  position: absolute;
  transform: translate(-50%, -50%);
  min-height: 44px;
  padding: 8px 13px;
  font-size: 12px;
  background: #fffdf0ec;
  border: 1px solid #b7cabc;
  border-radius: 22px;
  box-shadow: 0 3px 0 #90b0a138;
  white-space: nowrap;
}
.explorer-map button:hover {
  translate: 0 0;
  background: #fff7d9;
}
.explorer-map button[aria-pressed="true"] {
  background: #f6e6bb;
  border-color: #c6ad79;
}
.explorer-map-note {
  font-size: 11px;
  line-height: 1.7;
  color: #6f8375;
  padding: 0 25px 8px;
}
.explorer-filter {
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
  margin: 25px 0 15px;
}
.explorer-filter label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #687b6a;
  min-width: 180px;
  flex: 1;
}
.explorer-filter input,
.explorer-filter select,
.explorer-trip-banner select,
.explorer-games-level select {
  padding: 13px 15px;
  min-height: 46px;
  border: 1px solid #dce3d3;
  background: #fffdf7;
  border-radius: 12px;
  color: #526c60;
  min-width: 0;
  width: 100%;
}
.explorer-results {
  font-size: 12px;
  color: #72826e;
  margin: 13px 0;
}
.explorer-countries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.explorer-country {
  padding: 0;
  border: 1px solid #dde3d2;
  border-radius: 21px;
  background: #fffdf7;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 5px 0 #e9eadb;
  min-width: 0;
}
.explorer-country-art {
  position: relative;
  background: #e5eee0;
  padding: 10px 10px 0;
}
.explorer-country-art > svg {
  display: block;
  width: 100%;
  height: auto;
}
.explorer-country-flag {
  position: absolute;
  bottom: -18px;
  right: 14px;
  padding: 4px;
  background: #fffdf5;
  border-radius: 7px;
  box-shadow: 0 2px 5px #415e4f1a;
}
.explorer-flag {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #415e4f15;
}
.explorer-country-flag .explorer-flag {
  width: 46px;
  height: 35px;
}
.explorer-country-copy {
  padding: 19px 18px 17px;
}
.explorer-country-copy small {
  font-size: 10px;
  color: #7d8b74;
  letter-spacing: 0.6px;
}
.explorer-country-copy h3 {
  font: 500 23px Fredoka;
  margin: 6px 0;
}
.explorer-country-copy p {
  font-size: 12px;
  color: #72816b;
  margin: 5px 0 15px;
}
.explorer-country-foot {
  font-size: 11px;
  color: #758b66;
}
.explorer-small {
  font-size: 11px;
  color: #788575;
  line-height: 1.7;
  margin: 20px 0;
}
.explorer-back {
  font-size: 12px;
  padding: 10px 14px;
  margin-bottom: 15px;
  background: #f0efdf;
  min-height: 44px;
}
.explorer-postcard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid #dce3d1;
  background: #fffdf6;
  box-shadow: 0 6px 0 #e6e6d6;
}
.explorer-postcard-picture {
  position: relative;
  background: linear-gradient(145deg, #e1ebd8, #ceded3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}
.explorer-postcard-picture > svg {
  width: 100%;
  max-width: 430px;
  display: block;
}
.explorer-airmail {
  position: absolute;
  bottom: 17px;
  left: 20px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #6f8a78;
}
.explorer-postcard-copy {
  padding: 30px;
}
.explorer-postcard-copy h3 {
  font: 500 37px Fredoka;
  color: #466c65;
  margin: 8px 0 18px;
}
.explorer-postcard-copy p {
  font-size: 13px;
  line-height: 1.8;
  color: #6d7d6d;
}
.explorer-country-identity {
  display: flex;
  gap: 14px;
  align-items: center;
}
.explorer-country-identity b {
  font: 500 23px Fredoka;
}
.explorer-country-identity small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #7c8976;
}
.explorer-postcard-copy button {
  font-size: 12px;
  background: #edf0df;
  min-height: 44px;
}
.explorer-discoveries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 23px 0;
}
.explorer-discoveries .panel {
  margin: 0;
}
.explorer-discoveries h3 {
  font: 500 22px Fredoka;
  margin: 0 0 12px;
}
.explorer-discoveries h4 {
  font: 500 20px Fredoka;
  margin: 12px 0;
}
.explorer-discoveries p {
  font-size: 13px;
  color: #6d7b6b;
  line-height: 1.8;
}
.explorer-discoveries .explorer-flag {
  width: 120px;
  height: 90px;
  margin-top: 12px;
}
.explorer-trip-banner {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  background: linear-gradient(115deg, #edf0d9, #f3e9dc);
  border: 1px solid #e2e2ca;
  border-radius: 23px;
}
.explorer-trip-banner h3 {
  font: 500 28px Fredoka;
  margin: 7px 0;
}
.explorer-trip-banner p {
  font-size: 13px;
  line-height: 1.8;
  color: #748065;
  max-width: 640px;
}
.explorer-trip-banner label {
  display: grid;
  gap: 8px;
  max-width: 270px;
  font-size: 12px;
  color: #657859;
}
.explorer-trip-banner .explorer-small {
  font-size: 10px;
  margin-bottom: 0;
}
.explorer-trip-cta {
  display: grid;
  gap: 10px;
  flex-shrink: 0;
  text-align: center;
}
.explorer-trip-cta button {
  font-size: 13px;
  min-height: 44px;
}
.explorer-mini-stamp {
  border: 2px dashed #91a97a;
  color: #74915c;
  border-radius: 10px;
  padding: 15px;
  rotate: -4deg;
  font-size: 12px;
}
.explorer-sources {
  margin: 20px 0;
  font-size: 12px;
  color: #74806d;
}
.explorer-sources summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
}
.explorer-journey {
  background: #fffdf7;
  border: 1px solid #e2e4d4;
  border-radius: 25px;
  padding: 28px;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 6px 0 #e5e9d9;
  text-align: center;
}
.explorer-journey-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #5d7b70;
}
.explorer-stops {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 25px 0;
}
.explorer-stops span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px dashed #c5d2ba;
  border-radius: 50%;
  background: #f0f2e7;
  font-size: 13px;
  color: #81916f;
}
.explorer-stops .now {
  background: #f7e8b8;
  border: 1px solid #d7bf7e;
  color: #89703e;
}
.explorer-stops .done {
  background: #dcebcf;
  border: 1px solid #a3bc88;
  color: #617d48;
}
.explorer-journey h3 {
  font: 500 29px Fredoka;
  line-height: 1.4;
  margin: 20px 0;
  color: #3e6359;
}
.geography-clue {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  max-width: 350px;
}
.geography-clue .explorer-flag {
  width: 180px;
  height: 135px;
  border-radius: 9px;
  box-shadow: 0 5px 0 #dedfd2;
}
.geography-place svg {
  width: 100%;
  display: block;
  max-height: 200px;
}
.explorer-question-icon {
  font-size: 65px;
  padding: 16px;
}
.explorer-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 25px auto 15px;
  max-width: 650px;
}
.explorer-answers button {
  min-height: 65px;
  background: #edf0e2;
  border: 2px solid #e0e5d1;
  font: 500 22px Fredoka;
  padding: 13px;
}
.explorer-answers button.correct {
  background: #d8e9c9;
  border-color: #93b575;
  color: #4e7247;
}
.explorer-answers button.try-again {
  background: #f5ebdc;
  border-color: #dfcab0;
  opacity: 0.8;
}
.explorer-trip-tools {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}
.explorer-trip-tools button {
  font-size: 12px;
  min-height: 44px;
}
.explorer-feedback {
  font-size: 15px;
  line-height: 1.7;
  min-height: 32px;
  color: #648455;
}
.explorer-journey #explorerNext {
  display: block;
  min-width: 180px;
  margin: 10px auto 15px;
}
.explorer-journey .explorer-back {
  display: block;
  margin: 15px auto 0;
}
.explorer-finish {
  text-align: center;
  padding: 35px 25px;
  border-radius: 25px;
  background: linear-gradient(135deg, #edf1dc, #f6eadf);
  border: 1px solid #dce3ce;
}
.explorer-finish h3 {
  font: 500 35px Fredoka;
  margin: 10px 0 25px;
  color: #486e5d;
}
.explorer-finish p {
  font-size: 14px;
  line-height: 1.7;
  color: #6d7d65;
}
.explorer-finish .controls {
  justify-content: center;
  margin-top: 25px;
}
.explorer-finish .passport-stamp {
  max-width: 210px;
  margin: auto;
}
.explorer-passport {
  background: #faf5e6;
  border: 1px solid #e5dbc1;
  border-radius: 25px;
  padding: 27px;
  box-shadow: 0 7px 0 #e9e0c9;
}
.passport-cover {
  display: flex;
  gap: 22px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px dashed #d9cdb1;
}
.passport-cover > span {
  font-size: 61px;
}
.passport-cover h3 {
  font: 500 35px Fredoka;
  color: #5d715a;
  margin: 8px 0;
}
.passport-cover p {
  font-size: 12px;
  color: #8c8a71;
  margin: 0;
}
.passport-intro {
  font-size: 13px;
  line-height: 1.8;
  color: #7c8069;
  margin: 20px 0;
}
.passport-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.passport-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed #cdbf9e;
  border-radius: 20px;
  padding: 23px 12px;
  min-height: 175px;
  background: #fffaf0;
  min-width: 0;
  text-align: center;
}
.passport-stamp b {
  font: 500 19px Fredoka;
}
.passport-stamp small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #938f76;
  line-height: 1.8;
}
.passport-stamp.collected {
  background: #ecf0dc;
  border: 2px dashed #98b086;
  box-shadow: inset 0 0 0 5px #f6f7e7;
  color: #5a7d57;
  animation: explorer-stamp 0.4s ease-out;
}
.passport-stamp.waiting {
  color: #9b9b85;
}
.passport-empty {
  font-size: 43px;
  color: #ccc3a6;
}
.passport-stamp .explorer-flag {
  width: 64px;
  height: 48px;
}
.explorer-games-intro {
  background: linear-gradient(120deg, #e4ecef, #eee8f1);
  border: 1px solid #dae2e1;
  border-radius: 24px;
  padding: 28px;
  text-align: center;
}
.explorer-games-intro > span {
  font-size: 45px;
}
.explorer-games-intro h3 {
  font: 500 31px Fredoka;
  color: #58747a;
  margin: 14px 0;
}
.explorer-games-intro p {
  font-size: 13px;
  line-height: 1.8;
  color: #788281;
  max-width: 620px;
  margin: auto;
}
.explorer-game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 23px 0;
}
.explorer-game-card {
  border: 1px solid #dce3d2;
  border-radius: 21px;
  padding: 25px;
  background: #fffdf5;
}
.explorer-game-card > div {
  font-size: 38px;
}
.explorer-game-card h3 {
  font: 500 26px Fredoka;
  margin: 12px 0;
}
.explorer-game-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #78836e;
  min-height: 45px;
}
.explorer-game-card button {
  font-size: 13px;
}
.explorer-game-card.featured {
  background: #edf1e1;
  border-color: #b4c799;
}
.explorer-games-level {
  padding: 20px 25px;
  background: #efefdf;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.explorer-games-level label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  min-width: 230px;
}
.explorer-games-level p {
  font-size: 12px;
  line-height: 1.8;
  color: #78816b;
}
.tile-geography {
  background: linear-gradient(120deg, #e1ecea, #dce7f2) !important;
  color: #52747a !important;
}
.subject-gardens {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@keyframes explorer-drift {
  50% {
    transform: translate(5px, -5px) rotate(-6deg);
  }
}
@keyframes explorer-stamp {
  from {
    transform: scale(1.05) rotate(-4deg);
    opacity: 0.7;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .explorer-countries {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .passport-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .explorer-countries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .passport-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .subject-gardens {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .explorer-postcard {
    grid-template-columns: 1fr;
  }
  .explorer-postcard-picture {
    padding: 15px 20px 35px;
  }
  .explorer-postcard-picture > svg {
    max-width: 320px;
  }
  .explorer-trip-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .explorer-trip-cta {
    grid-template-columns: 1fr 1fr;
  }
  .explorer-mini-stamp {
    grid-column: span 2;
  }
  .explorer-map button {
    font-size: 10px;
    padding: 6px 10px;
  }
}
@media (max-width: 650px) {
  .explorer-heading {
    gap: 9px;
    align-items: flex-start;
  }
  .explorer-heading h2 {
    font-size: 29px;
    line-height: 1.2;
  }
  .explorer-heading p {
    font-size: 12px;
    line-height: 1.6;
  }
  .explorer-kicker {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .passport-pill {
    grid-template-columns: 1fr;
    padding: 11px 12px;
    gap: 3px;
    text-align: center;
    max-width: 95px;
  }
  .passport-pill > span {
    display: none;
  }
  .passport-pill b {
    font-size: 23px;
  }
  .passport-pill small {
    font-size: 9px;
  }
  .explorer-tabs {
    gap: 6px;
  }
  .explorer-tabs button {
    flex: 1;
    padding: 11px 6px;
    font-size: 11px;
  }
  .explorer-map-caption {
    padding: 19px 17px 10px;
  }
  .explorer-map-caption h3 {
    font-size: 22px;
  }
  .explorer-plane {
    font-size: 31px;
  }
  .explorer-map {
    margin: 0 6px;
  }
  .explorer-map button {
    font-size: 8px;
    min-height: 37px;
    padding: 5px 7px;
  }
  .explorer-map-note {
    padding: 0 17px 5px;
    font-size: 10px;
  }
  .explorer-filter {
    gap: 10px;
  }
  .explorer-filter label {
    min-width: 140px;
  }
  .explorer-countries {
    gap: 11px;
  }
  .explorer-country-copy {
    padding: 17px 11px 14px;
  }
  .explorer-country-copy h3 {
    font-size: 20px;
  }
  .explorer-country-copy p {
    font-size: 10px;
    min-height: 27px;
    line-height: 1.5;
  }
  .explorer-country-foot {
    font-size: 10px;
  }
  .explorer-country-flag {
    right: 8px;
  }
  .explorer-country-flag .explorer-flag {
    width: 35px;
    height: 27px;
  }
  .explorer-country-art {
    padding: 5px 4px 0;
  }
  .explorer-discoveries {
    grid-template-columns: 1fr;
  }
  .explorer-postcard-copy {
    padding: 22px;
  }
  .explorer-postcard-copy h3 {
    font-size: 31px;
  }
  .explorer-trip-banner {
    padding: 20px;
  }
  .explorer-trip-banner h3 {
    font-size: 26px;
  }
  .explorer-trip-cta {
    grid-template-columns: 1fr;
  }
  .explorer-mini-stamp {
    grid-column: auto;
  }
  .explorer-trip-cta button {
    font-size: 12px;
  }
  .explorer-journey {
    padding: 22px 15px;
  }
  .explorer-journey-top {
    font-size: 12px;
  }
  .explorer-journey h3 {
    font-size: 25px;
  }
  .explorer-answers {
    gap: 9px;
  }
  .explorer-answers button {
    font-size: 19px;
    padding: 10px;
    min-height: 64px;
  }
  .explorer-stops {
    gap: 11px;
  }
  .geography-clue .explorer-flag {
    width: 144px;
    height: 108px;
  }
  .explorer-finish {
    padding: 25px 17px;
  }
  .explorer-finish h3 {
    font-size: 29px;
  }
  .explorer-passport {
    padding: 18px 13px;
  }
  .passport-cover {
    gap: 10px;
  }
  .passport-cover > span {
    font-size: 40px;
  }
  .passport-cover h3 {
    font-size: 27px;
  }
  .passport-cover p {
    font-size: 10px;
    line-height: 1.7;
  }
  .passport-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .passport-stamp {
    min-height: 160px;
    padding: 18px 8px;
  }
  .passport-stamp b {
    font-size: 17px;
  }
  .passport-stamp small {
    font-size: 7px;
  }
  .explorer-game-grid {
    grid-template-columns: 1fr;
  }
  .explorer-game-card {
    padding: 22px;
  }
  .explorer-games-level {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 20px;
  }
  .explorer-games-level label {
    min-width: 0;
  }
  .subject-gardens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-explorer * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
