@font-face {
  font-family: "TTTravelsNext";
  src: url("TTTravelsNextTrl-Bd.ttf") format("truetype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #9356FF;
  font-family: 'Inter', Arial, sans-serif;
  
}

button, input {
  font-family: 'Inter', Arial, sans-serif;
  appearance: none;
  border: none;
}

#scene {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
}

#scene:active {
  cursor: grabbing;
}

/* ── Controls overlay ────────────────────────────────────────────── */
#controls {
  position: fixed;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  bottom: 50%;
  transform: translate(0, 50%);
}

@media (max-width: 767px) {
  #controls {
    right: 16px;
  }
}

#controls button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s;
}

#controls button:hover {
  background: rgba(255, 255, 255, 0.30);
}

#controls img {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Loading spinner ─────────────────────────────────────────────── */
#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
  transition: opacity 0.4s;
}

#loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-icon-wrap {
  background: #000;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-icon {
  width: 64px;
  height: 64px;
  position: relative;
}

.loading-icon svg {
  animation: spin 6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.header {
  /* header */
  box-sizing: border-box;

  position: fixed;
  height: 78px;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 10;

  background: #000000;
  border-bottom: 1px solid #19191A;
  border-bottom-left-radius: 17px;
  border-bottom-right-radius: 17px;
}

.header-layout {
  /* Auto layout */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  width: 100%;
}

@media (max-width: 767px) {
  .header {
    height: auto;
  }
  .header-layout {
    padding: 10px 16px;
  }
}

.header-logos-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: .75rem;
  color: #fff;
}

.header-logos-wrap img {
  display: block;
  margin: 0;
  width: 100%;
}

@media (max-width: 767px) {
  .setka-logo {
    width: 137px;
  }
  .setka-authors-logo {
    width: 30px;
  }
}

.header-button {
  font-family: "TTTravelsNext";
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  /* background-image: linear-gradient(0deg, #9a5cff .37%, #7d2eff 2.45%, #6f17ff 4.93%, #ae57ff 99.54%); */
  text-decoration: none;
  padding: 0 16px;
  border-radius: 12px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  text-transform: lowercase;
  background: #6B00FF;
  transition: background .2s ease-in-out;
}

@media (max-width: 767px) {
  .header-button {
    height: 32px;
  }
}

.header-button:hover {
  background: #6a00ffe2;
}

.header-button-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-button-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.header-button-icon svg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.footer-wrap {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10;

  display: flex;
  flex-flow: column;
  justify-content: end;
  align-items: start;
  flex-flow: column-reverse;
  gap: 12px;
}

.footer {
  position: relative;
  width: 270px;
  max-width: 270px;
  border-radius: 24px;
  left: 0;
  bottom: 0;
  right: 0;
  background: #000;
  height: auto;
  pointer-events: none;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .15s ease-in-out, opacity .15s ease-in-out;
  display: none;
}

/* @media (hover: hover) {
  .footer-wrap:hover .footer {
    display: block;
    pointer-events: auto;
    transform: translateY(0);
    opacity: 1;
  }
} */

.footer.open {
  display: block;
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
}

.footer-toggle {
  appearance: none;
  border-radius: 100vw;
  height: 72px;
  width: 72px;
  background: #111111;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px #19191A;
  cursor: pointer;
}

.footer-layout {
  display: flex;
  flex-flow: column;
  align-items: start;
  justify-content: start;
  gap: 12px;
  padding: 24px 16px;
  width: 100%;
  max-width: 1020px;
  margin: auto;
  width: 100%;
}

.footer-link {
  color: #747478;
  flex: 1 1 20%;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: .01em;
  transition: .2s all ease-in-out;
  text-wrap: balance;
}

 .footer-link:not(.footer-link-partners):hover {
  color: #fff;
 }

 .footer-link-partners {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: start;
 }

 .footer-link-partners a {
  display: block;
  width: 18px;
  height: 18px;
  position: relative;
  border-radius: 100vw;
  transition: filter .2s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
 }

 .footer-link-partners a:hover {
    filter: drop-shadow(0px 0px 2.5px rgba(255, 255, 255, 0.5));
  }

 .partner-logo {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
 }

@media (max-width: 767px) {
  .footer {
    height: auto;
  } 

  .footer-link {
    text-align: left;
  }

  .footer-link:first-child {
      grid-column: 1;
      grid-row: 2;
  }

  .footer-link:nth-child(2) {
      grid-column: 2;
      grid-row: 2;
  }
}

#cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 365px;
  background: #202020;
  padding: 15px 0 15px 37px;
  border-radius: 100vw;
  display: flex;
  gap: 22px;
  z-index: 11;
}


@media (max-width: 767px) {
  #cookie-banner {
    left: 16px;
    width: auto;
    right: 16px;
  }
}

.cookie-text {
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  color: #fff;
  width: 234px;
}

#cookie-accept {
  appearance: none;
  color: #fff;
  width: 72px;
  height: 72px;
  border-radius: 100vw;
  font-size: 14px;
  font-weight: 500;

  position: absolute;
  right: 0;
  top: 0;
  border: none;
  background: #111111;
  box-shadow: inset 0 0 0 1px #19191A;
  cursor: pointer;
}

.cookie-text a {
  color: #8C45FF;
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.hint {
  display: flex;
  gap: 16px;
  justify-content: start;
  align-items: center;
  position: fixed;
  left: 50%;
  top: 50%;
  background: #FFFFFF;
  border-radius: 100vw;
  width: 100%;
  max-width: 342px;
  box-shadow: inset 0 0 0 1px #F0F0F0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 200;
}

@media (max-width: 767px) {
  .hint {
    max-width: calc(100vw - 32px);
  }
}

.hint-icon {
  width: 61px;
  height: 61px;
  border: 1px solid #F0F0F0;
  background: #6B00FF;
  border-radius: 100vw;
  position: relative;
  flex: 0 0 auto;
}

.hint-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

.hint-text {
  color: #000;
  font-size: 14px;
  font-weight: 500;
  max-width: 230px;
}

.map-rect, .map-circle {
  transition: fill-opacity .15s ease-in-out, fill .15s ease-in-out;
}

a.level_0:hover .map-rect {
  fill-opacity: .3;
}

a.level_1:hover .map-rect {
  fill-opacity: .5;
}

a.level_2:hover .map-rect {
  fill: #7130E6;
}

a.level_3:hover .map-rect {
  fill: #4000C6;
}

a.level_0:hover .map-circle {
  fill-opacity: .8;
}

a.level_1:hover .map-circle {
  fill-opacity: 1;
}

a.level_2:hover .map-circle {
  fill-opacity: .8;
}

a.level_3:hover .map-circle {
  fill-opacity: .8;
}