/* =========================================================
   DURAN FARM - MARZIPANO MAIN CSS
   CLEAN / FIXED / MOBILE FRIENDLY
========================================================= */

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;

  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;

  -ms-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;

  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -ms-content-zooming: none;

  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   HTML / BODY
========================================================= */

html,
body {
  width: 100%;
  height: 100%;

  padding: 0;
  margin: 0;

  overflow: hidden;

  font-family:
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  font-size: 16px;

  background-color: #000;
  color: #fff;
}


/* =========================================================
   LINKS
========================================================= */

a,
a:hover,
a:active,
a:visited {
  text-decoration: none;
  color: inherit;
}


/* =========================================================
   PANORAMA
========================================================= */

#pano {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;
}


/* =========================================================
   TITLE BAR
========================================================= */

#titleBar {
  position: absolute;

  top: 0;
  left: 0;
  right: 40px;

  height: 40px;

  text-align: center;
}

.mobile #titleBar {
  height: 50px;
  right: 50px;
}

body.fullscreen-enabled #titleBar {
  right: 80px;
}

body.fullscreen-enabled.mobile #titleBar {
  right: 100px;
}

body.multiple-scenes #titleBar {
  left: 40px;
}

body.multiple-scenes.mobile #titleBar {
  left: 50px;
}

#titleBar .sceneName {
  width: 100%;
  height: 100%;

  line-height: 30px;

  padding: 5px;

  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.mobile #titleBar .sceneName {
  line-height: 40px;
}


/* =========================================================
   FULLSCREEN
========================================================= */

#fullscreenToggle {
  display: none;

  position: absolute;

  top: 0;
  right: 0;

  width: 40px;
  height: 40px;

  padding: 5px;

  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

.mobile #fullscreenToggle {
  width: 50px;
  height: 50px;
}

body.fullscreen-enabled #fullscreenToggle {
  display: block;
}

#fullscreenToggle .icon {
  position: absolute;

  top: 5px;
  right: 5px;

  width: 30px;
  height: 30px;
}

.mobile #fullscreenToggle .icon {
  top: 10px;
  right: 10px;
}

#fullscreenToggle .icon.on {
  display: none;
}

#fullscreenToggle .icon.off {
  display: block;
}

#fullscreenToggle.enabled .icon.on {
  display: block;
}

#fullscreenToggle.enabled .icon.off {
  display: none;
}


/* =========================================================
   AUTOROTATE
========================================================= */

#autorotateToggle {
  display: block;

  position: absolute;

  top: 0;
  right: 0;

  width: 40px;
  height: 40px;

  padding: 5px;

  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

.mobile #autorotateToggle {
  width: 50px;
  height: 50px;
}

body.fullscreen-enabled #autorotateToggle {
  right: 40px;
}

body.fullscreen-enabled.mobile #autorotateToggle {
  right: 50px;
}

#autorotateToggle .icon {
  position: absolute;

  top: 5px;
  right: 5px;

  width: 30px;
  height: 30px;
}

.mobile #autorotateToggle .icon {
  top: 10px;
  right: 10px;
}

#autorotateToggle .icon.on {
  display: none;
}

#autorotateToggle .icon.off {
  display: block;
}

#autorotateToggle.enabled .icon.on {
  display: block;
}

#autorotateToggle.enabled .icon.off {
  display: none;
}


/* =========================================================
   SCENE LIST TOGGLE
========================================================= */

#sceneListToggle {
  display: none !important;

  position: absolute;

  top: 0;
  left: 0;

  width: 40px;
  height: 40px;

  padding: 5px;

  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

.mobile #sceneListToggle {
  width: 50px;
  height: 50px;
}

#sceneListToggle .text {
  position: absolute;

  top: 5px;
  left: 15px;

  width: 100%;

  line-height: 30px;
}

#sceneListToggle .icon {
  position: absolute;

  top: 5px;
  right: 5px;

  width: 30px;
  height: 30px;
}

.mobile #sceneListToggle .icon {
  top: 10px;
  right: 10px;
}

#sceneListToggle .icon.on {
  display: none;
}

#sceneListToggle .icon.off {
  display: block;
}

#sceneListToggle.enabled .icon.on {
  display: block;
}

#sceneListToggle.enabled .icon.off {
  display: none;
}


/* =========================================================
   SCENE LIST
========================================================= */

#sceneList {
  position: absolute;

  top: 0;
  left: -220px;

  padding-top: 40px;

  width: 220px;
  max-height: 100%;

  overflow-x: hidden;
  overflow-y: auto;

  margin-left: 0;

  -webkit-transition:
    margin-left 0.5s ease-in-out;

  transition:
    margin-left 0.5s ease-in-out;
}

.mobile #sceneList {
  padding-top: 50px;
}

#sceneList .scenes {
  width: 100%;

  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);
}

.mobile #sceneList {
  width: 100%;
  height: 100%;

  left: -100%;
}

.mobile #sceneList.enabled {
  margin-left: 100%;
}

.mobile #sceneList .scenes {
  height: 100%;
}

#sceneList.enabled {
  margin-left: 220px;
}

#sceneList .scene {
  display: block;

  width: 100%;
  height: 30px;
}

.mobile #sceneList .scene {
  height: 40px;
}

#sceneList .scene .text {
  width: 100%;
  height: 100%;

  padding: 0 15px;

  line-height: 30px;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile #sceneList .scene .text {
  line-height: 40px;
}

.no-touch #sceneList .scene:hover {
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

#sceneList .scene.current {
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

body.single-scene #sceneList,
body.single-scene #sceneListToggle {
  display: none;
}


/* =========================================================
   LINK HOTSPOTS
========================================================= */

.link-hotspot {
  width: 60px;
  height: 60px;

  margin-left: -30px;
  margin-top: -30px;

  opacity: 0.9;

  pointer-events: auto;

  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.no-touch .link-hotspot:hover {
  opacity: 1;
}

.mobile .link-hotspot {
  width: 70px;
  height: 70px;
}

.link-hotspot-icon {
  width: 100%;
  height: 100%;

  cursor: pointer;
}

.link-hotspot-tooltip {
  position: absolute;

  left: 100%;
  top: 14px;

  margin-left: 3px;

  font-size: 16px;

  max-width: 300px;

  padding: 8px 10px;

  border-radius: 5px;

  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);

  color: #fff;

  white-space: nowrap;

  text-overflow: ellipsis;
  overflow: hidden;

  cursor: pointer;

  opacity: 0;

  transform: translateX(-8px);

  transition:
    transform 0.3s,
    opacity 0.3s;

  pointer-events: none;
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;

  transform: translateX(0);

  pointer-events: all;
}

.tooltip-fallback .link-hotspot-tooltip {
  display: none;
}

.no-touch
.tooltip-fallback
.link-hotspot:hover
.link-hotspot-tooltip {
  display: block;
}


/* =========================================================
   INFO HOTSPOT
========================================================= */

.info-hotspot {
  line-height: 1.2em;

  opacity: 0.9;

  transition: opacity 0.2s 0.2s;
}

.no-touch .info-hotspot:hover {
  opacity: 1;

  transition: opacity 0.2s;
}

.info-hotspot.visible {
  opacity: 1;
}

.info-hotspot .info-hotspot-header {
  width: 40px;
  height: 40px;

  border-radius: 20px;

  background-color: rgb(103, 115, 131);

  cursor: pointer;

  transition:
    width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
}

.mobile .info-hotspot .info-hotspot-header {
  width: 50px;
  height: 50px;

  border-radius: 25px;
}

.desktop.no-touch
.info-hotspot
.info-hotspot-header:hover {
  width: 260px;

  border-radius: 5px;

  transition:
    width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
}

.desktop
.info-hotspot.visible
.info-hotspot-header,
.desktop.no-touch
.info-hotspot.visible
.info-hotspot-header:hover {
  width: 260px;

  border-radius: 5px;

  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;

  transition:
    width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
}

.info-hotspot .info-hotspot-icon-wrapper {
  width: 40px;
  height: 40px;
}

.mobile
.info-hotspot
.info-hotspot-icon-wrapper {
  width: 50px;
  height: 50px;
}

.info-hotspot .info-hotspot-icon {
  width: 90%;
  height: 90%;

  margin: 5%;
}

.info-hotspot .info-hotspot-title-wrapper {
  position: absolute;

  left: 40px;
  top: 0;

  width: 0;
  height: 40px;

  padding: 0;

  overflow: hidden;

  transition:
    width 0s 0.4s,
    padding 0s 0.4s;
}

.desktop
.info-hotspot.visible
.info-hotspot-title-wrapper,
.desktop.no-touch
.info-hotspot
.info-hotspot-header:hover
.info-hotspot-title-wrapper {
  width: 220px;

  padding: 0 5px;

  transition:
    width 0s 0.4s,
    padding 0s 0.4s;
}

.info-hotspot
.info-hotspot-title-wrapper:before {
  content: '';

  display: inline-block;

  vertical-align: middle;

  height: 100%;
}

.info-hotspot .info-hotspot-title {
  display: inline-block;

  vertical-align: middle;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot
.info-hotspot-close-wrapper {
  position: absolute;

  left: 260px;
  top: 0;

  height: 40px;
  width: 40px;

  border-top-right-radius: 5px;

  background-color: rgb(78, 88, 104);

  visibility: hidden;

  transform:
    perspective(200px)
    rotateY(90deg);

  transform-origin: 0 50% 0;
}

.desktop
.info-hotspot.visible
.info-hotspot-close-wrapper {
  visibility: visible;

  transform:
    perspective(200px)
    rotateY(0deg);
}

.info-hotspot
.info-hotspot-close-icon {
  width: 70%;
  height: 70%;

  margin: 15%;
}

.info-hotspot .info-hotspot-text {
  position: absolute;

  width: 300px;
  height: auto;

  max-height: 200px;

  top: 40px;
  left: 0;

  padding: 10px;

  background-color: rgb(58, 68, 84);

  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;

  overflow-y: auto;

  visibility: hidden;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}


/* =========================================================
   INFO MODAL
========================================================= */

.desktop .info-hotspot-modal {
  display: none;
}

.info-hotspot-modal {
  top: 0;
  left: 0;

  position: absolute;

  width: 100%;
  height: 100%;

  overflow: hidden;

  z-index: 11000 !important;

  background-color: rgba(0, 0, 0, 0.5);

  line-height: 1.2em;

  opacity: 0;
  visibility: hidden;
}

.info-hotspot-modal.visible {
  opacity: 1;
  visibility: visible;
}

.info-hotspot-modal .info-hotspot-header {
  position: absolute;

  top: 60px;
  left: 10px;
  right: 10px;

  width: auto;
  height: 50px;

  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);

  opacity: 0;
}

.info-hotspot-modal.visible
.info-hotspot-header {
  opacity: 1;
}

.info-hotspot-modal
.info-hotspot-icon-wrapper {
  width: 50px;
  height: 50px;
}

.info-hotspot-modal
.info-hotspot-icon {
  width: 90%;
  height: 90%;

  margin: 5%;
}

.info-hotspot-modal
.info-hotspot-title-wrapper {
  position: absolute;

  top: 0;
  left: 50px;
  right: 50px;

  width: auto;
  height: 50px;

  padding: 0 10px;
}

.info-hotspot-modal
.info-hotspot-title-wrapper:before {
  content: '';

  display: inline-block;

  vertical-align: middle;

  height: 100%;
}

.info-hotspot-modal
.info-hotspot-title {
  display: inline-block;

  vertical-align: middle;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot-modal
.info-hotspot-close-wrapper {
  position: absolute;

  top: 0;
  right: 0;

  width: 50px;
  height: 50px;

  background-color: rgb(78, 88, 104);
  background-color: rgba(78, 88, 104, 0.8);

  cursor: pointer;
}

.info-hotspot-modal
.info-hotspot-close-icon {
  width: 70%;
  height: 70%;

  margin: 15%;
}

.info-hotspot-modal
.info-hotspot-text {
  position: absolute;

  top: 110px;
  bottom: 10px;

  left: 10px;
  right: 10px;

  padding: 10px;

  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);

  overflow-y: auto;

  opacity: 0;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot-modal.visible
.info-hotspot-text {
  opacity: 1;
}


/* =========================================================
   VIEW CONTROL BUTTONS
========================================================= */

.viewControlButton {
  display: none;

  position: absolute;

  bottom: 0;
  left: 50%;

  width: 40px;
  height: 40px;

  padding: 5px;

  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

body.view-control-buttons
.viewControlButton {
  display: block;
}

@media (max-width: 600px) {

  body.view-control-buttons
  .viewControlButton {
    display: none;
  }

}

.viewControlButton .icon {
  position: absolute;

  top: 5px;
  right: 5px;

  width: 50px;
  height: 50px;
}

.viewControlButton-1 {
  margin-left: -145px;
}

.viewControlButton-2 {
  margin-left: -95px;
}

.viewControlButton-3 {
  margin-left: -45px;
}

.viewControlButton-4 {
  margin-left: 5px;
}

.viewControlButton-5 {
  margin-left: 55px;
}

.viewControlButton-6 {
  margin-left: 105px;
}


/* =========================================================
   CUSTOM DURAN IMAGE HOTSPOTS
========================================================= */

.custom-image-hotspot {
  width: auto;
  height: auto;

  cursor: pointer;

  transform: translate(-50%, -50%);

  z-index: 10;

  pointer-events: auto;
}

.custom-image-hotspot-button {
  border: 0;

  background: none;

  padding: 0;
  margin: 0;

  cursor: pointer;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 6px;

  -webkit-tap-highlight-color: transparent;

  touch-action: manipulation;

  pointer-events: auto;
}

.custom-image-hotspot-icon {
  width: 70px;
  height: 70px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 4px 7px rgba(0, 0, 0, 0.55)
    );

  transition:
    transform 0.18s ease,
    filter 0.18s ease;

  pointer-events: none;
}

.no-touch
.custom-image-hotspot-button:hover
.custom-image-hotspot-icon {
  transform: scale(1.12);

  filter:
    drop-shadow(
      0 6px 10px rgba(0, 0, 0, 0.7)
    );
}


/* =========================================================
   CUSTOM IMAGE HOTSPOT LABEL
========================================================= */

.custom-image-hotspot-label {
  color: #fff;

  font-family: Arial, sans-serif;

  font-weight: 800;

  font-size: 14px;

  line-height: 1.1;

  text-align: center;

  background: transparent !important;
  background-color: transparent !important;

  border: none !important;

  border-radius: 0;

  padding: 0;

  min-width: 0;
  max-width: 160px;

  text-shadow:
    0 1px 3px #000,
    0 2px 6px rgba(0, 0, 0, 0.8);

  box-shadow: none !important;

  pointer-events: none;
}


/* =========================================================
   CUSTOM IMAGE HOTSPOT PANEL
========================================================= */

.custom-image-hotspot-panel {
  display: none;

  position: absolute;

  left: 50%;
  top: 88px;

  transform: translateX(-50%);

  min-width: 210px;
  max-width: 280px;

  background: rgba(24, 24, 24, 0.88);

  color: #fff;

  border:
    2px solid
    rgba(255, 255, 255, 0.7);

  border-radius: 16px;

  padding: 12px;

  font-family: Arial, sans-serif;

  text-align: center;

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45);

  z-index: 50;
}

.custom-image-hotspot-panel.show {
  display: block;
}

.custom-image-hotspot-panel strong {
  display: block;

  margin-bottom: 6px;

  font-size: 16px;
}

.custom-image-hotspot-panel p {
  margin: 0;

  font-size: 13px;
}

.custom-image-hotspot-play {
  display: inline-block;

  margin-top: 10px;

  background: #27ae60;

  color: #fff;

  font-weight: 800;

  border-radius: 999px;

  padding: 7px 14px;

  pointer-events: auto;
}


/* =========================================================
   PATH ARROW HOTSPOTS
========================================================= */

.path-arrow-hotspot {
  width: 82px;
  height: 82px;

  margin-left: -41px;
  margin-top: -41px;

  background: transparent !important;

  border: 0 !important;

  pointer-events: auto !important;

  cursor: pointer;

  touch-action: manipulation;
}

.path-arrow-icon {
  width: 82px;
  height: 82px;

  border-radius: 999px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: white;

  font-size: 56px;

  font-weight: 900;

  line-height: 1;

  text-shadow:
    0 3px 2px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(0, 0, 0, 0.8);

  filter:
    drop-shadow(
      0 8px 8px rgba(0, 0, 0, 0.55)
    );

  transition:
    transform 0.18s ease,
    filter 0.18s ease;

  pointer-events: none;
}

.no-touch
.path-arrow-hotspot:hover
.path-arrow-icon {
  filter:
    drop-shadow(
      0 10px 12px rgba(0, 0, 0, 0.75)
    );
}

.path-arrow-hotspot
.link-hotspot-tooltip {
  top: 72px;

  left: 50%;

  transform:
    translateX(-50%);

  background:
    rgba(0, 0, 0, 0.62);

  border-radius: 999px;

  padding: 5px 10px;

  color: white;

  font-weight: 700;

  white-space: nowrap;
}


/* =========================================================
   GUIDE HOTSPOT
========================================================= */

.guide-hotspot {
  position: relative !important;

  width: auto !important;
  height: auto !important;

  overflow: visible !important;

  pointer-events: auto !important;

  visibility: visible !important;
  opacity: 1 !important;

  z-index: 999999 !important;
}


/* =========================================================
   GUIDE BUTTON

   FIX (click-to-close bug):
   The button needs `position: relative` for its
   z-index to actually apply (z-index does nothing on
   static elements). Without this, the guide-popup box
   sitting right on top of it wins the hit-test on the
   second click, so nothing ever closes.
========================================================= */

.guide-hotspot-btn {
  position: relative !important;

  width: 46px !important;
  height: 46px !important;

  min-width: 46px !important;
  min-height: 46px !important;

  padding: 0 !important;
  margin: 0 !important;

  border:
    3px solid #fff !important;

  border-radius: 50% !important;

  background: #ebc908 !important;
  background-color: #ebc908 !important;

  color: #fff !important;

  font-size: 26px !important;

  font-weight: bold !important;

  line-height: 40px !important;

  cursor: pointer !important;

  display: flex !important;

  align-items: center !important;
  justify-content: center !important;

  visibility: visible !important;
  opacity: 1 !important;

  pointer-events: auto !important;

  touch-action: manipulation !important;

  -webkit-appearance: none !important;
  appearance: none !important;

  -webkit-tap-highlight-color: transparent !important;

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35) !important;

  z-index: 10000005 !important;
}

.no-touch
.guide-hotspot-btn:hover {
  transform: scale(1.08);

  background: #f2d51b !important;
}


/* =========================================================
   GUIDE TEXT / POSITION / SIZE
   EASY EDIT SECTION

   NOTE ON RESPONSIVENESS:
   Sizes below use clamp(min, fluid, max) so the guide
   image and message bubble scale smoothly with the actual
   screen width instead of only snapping at two fixed
   breakpoints. This keeps them "responsive on phone or
   any small screen", not just at 768px/380px.
========================================================= */

:root {

  /* -------------------------------------------------------
     GUIDE POPUP POSITION

     Change these to move the COMPLETE popup.

     Example:
     left: 50px;
     top: 0px;

     Positive X = move right
     Negative X = move left

     Positive Y = move down
     Negative Y = move up
  ------------------------------------------------------- */

  --guide-popup-left: 15px;
  --guide-popup-top: 2px;


  /* -------------------------------------------------------
     SPACE BETWEEN GUIDE IMAGE AND TEXT
  ------------------------------------------------------- */

  --guide-gap: 1px;


  /* -------------------------------------------------------
     GUIDE IMAGE SIZE

     Increase width/height if the guide is too small.
     These now scale fluidly with viewport width.
  ------------------------------------------------------- */

  --guide-image-width: clamp(90px, 30vw, 250px);
  --guide-image-height: clamp(160px, 54vw, 450px);


  /* -------------------------------------------------------
     GUIDE IMAGE POSITION

     Positive X = right
     Negative X = left

     Positive Y = down
     Negative Y = up
  ------------------------------------------------------- */

  --guide-image-x: -30px;
  --guide-image-y: -120px;


  /* -------------------------------------------------------
     GUIDE TEXT BOX SIZE

     Fluid width with a safe upper cap so it can never
     spill past the edge of very narrow screens.
  ------------------------------------------------------- */

  --guide-bubble-width: clamp(160px, 60vw, 260px);

  --guide-bubble-padding: clamp(10px, 3vw, 16px);


  /* -------------------------------------------------------
     GUIDE TEXT BOX POSITION

     Positive X = right
     Negative X = left

     Positive Y = down
     Negative Y = up
  ------------------------------------------------------- */

  --guide-bubble-x: -100px;
  --guide-bubble-y: -400px;


  /* -------------------------------------------------------
     GUIDE MESSAGE TEXT
  ------------------------------------------------------- */

  --guide-text-size: clamp(11px, 3.2vw, 15px);

  --guide-text-line-height: 1.5;

  --guide-text-color: #222;

  --guide-text-align: left;


  /* -------------------------------------------------------
     GUIDE TITLE
  ------------------------------------------------------- */

  --guide-title-size: clamp(12px, 3.6vw, 17px);

  --guide-title-weight: 800;

  --guide-title-color: #064e3b;

  --guide-title-x: 0px;
  --guide-title-y: 0px;


  /* -------------------------------------------------------
     GUIDE MESSAGE TEXT POSITION

     Positive X = right
     Negative X = left

     Positive Y = down
     Negative Y = up
  ------------------------------------------------------- */

  --guide-text-x: 0px;
  --guide-text-y: 0px;
}


/* =========================================================
   GUIDE POPUP

   FIX (click-to-close bug):
   pointer-events changed from "auto" to "none" on the
   outer flex container. This container's box occupies the
   top-left area right next to/over the "?" button (before
   the transform visually moves the image/bubble away), and
   with pointer-events:auto it was intercepting the second
   click meant for the button. The actual clickable content
   (.guide-bubble and everything inside it, incl. the buy
   button) re-enables pointer-events itself below, so nothing
   inside the popup loses clickability.
========================================================= */

.guide-popup {
  display: none !important;

  position: absolute !important;

  left: var(--guide-popup-left) !important;
  top: var(--guide-popup-top) !important;

  bottom: auto !important;
  right: auto !important;

  width: max-content !important;

  /* Safety net: never wider than the viewport, regardless
     of screen size, even before media queries kick in. */
  max-width: calc(100vw - 20px) !important;

  height: auto !important;

  align-items: flex-end !important;

  /* Always keep the image and bubble side-by-side, same as
     the bigger-screen layout — never stack into a column. */
  flex-wrap: nowrap !important;

  gap: var(--guide-gap) !important;

  padding: 0 !important;
  margin: 0 !important;

  overflow: visible !important;

  visibility: visible !important;
  opacity: 1 !important;

  pointer-events: none !important;

  z-index: 9999999 !important;

  white-space: normal !important;
}

.guide-popup.show {
  display: flex !important;

  visibility: visible !important;

  opacity: 1 !important;

  pointer-events: none !important;
}


/* =========================================================
   GUIDE IMAGE
========================================================= */

.guide-gif {
  display: block !important;
  align-self: flex-start !important;

  width: var(--guide-image-width) !important;
  height: var(--guide-image-height) !important;

  min-width: 0 !important;
  min-height: 0 !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: contain !important;

  transform:
    translate(
      var(--guide-image-x),
      var(--guide-image-y)
    ) !important;

  flex-shrink: 0 !important;

  visibility: visible !important;
  opacity: 1 !important;

  pointer-events: none !important;

  user-select: none !important;

  -webkit-user-select: none !important;

  -webkit-user-drag: none !important;
}


/* =========================================================
   GUIDE TEXT BUBBLE

   NOTE: pointer-events stays "auto" here (and cascades to
   its children below) so the visible bubble, its text, and
   the buy/close affordances remain fully clickable even
   though the parent .guide-popup now ignores pointer events.
========================================================= */

.guide-bubble {
  position: relative !important;

  display: block !important;

  width: var(--guide-bubble-width) !important;

  min-width: 0 !important;

  /* Fluid width capped so the image + gap + bubble always
     fit side-by-side within the viewport, on any screen size,
     without needing to stack into a column. */
  max-width: min(
    var(--guide-bubble-width),
    calc(100vw - var(--guide-popup-left) - var(--guide-image-width) - var(--guide-gap) - var(--guide-bubble-x) - 20px)
  ) !important;

  height: auto !important;

  padding: var(--guide-bubble-padding) !important;

  margin: 0 !important;

  background: #ffffff !important;
  background-color: #ffffff !important;

  color: var(--guide-text-color) !important;

  border: none !important;

  border-radius: 18px !important;

  font-family:
    Arial,
    Helvetica,
    sans-serif !important;

  font-size: var(--guide-text-size) !important;

  line-height: var(--guide-text-line-height) !important;

  text-align: var(--guide-text-align) !important;

  white-space: normal !important;

  overflow: visible !important;

  overflow-wrap: break-word !important;

  word-wrap: break-word !important;

  opacity: 1 !important;
  visibility: visible !important;

  pointer-events: auto !important;

  flex-shrink: 1 !important;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35) !important;

  transform:
    translate(
      var(--guide-bubble-x),
      var(--guide-bubble-y)
    ) !important;

  z-index: 10000000 !important;

  -moz-user-select: text !important;
  -webkit-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}


/* =========================================================
   GUIDE TITLE
========================================================= */

.guide-bubble strong {
  display: block !important;

  position: relative !important;

  left: var(--guide-title-x) !important;
  top: var(--guide-title-y) !important;

  margin: 0 0 6px 0 !important;
  padding: 0 !important;

  color: var(--guide-title-color) !important;

  font-family:
    Arial,
    Helvetica,
    sans-serif !important;

  font-size: var(--guide-title-size) !important;

  font-weight: var(--guide-title-weight) !important;

  line-height: 1.3 !important;

  text-align: var(--guide-text-align) !important;

  background: transparent !important;

  visibility: visible !important;
  opacity: 1 !important;

  overflow: visible !important;

  -moz-user-select: text !important;
  -webkit-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}


/* =========================================================
   GUIDE MESSAGE
========================================================= */

.guide-bubble p {
  display: block !important;

  position: relative !important;

  left: var(--guide-text-x) !important;
  top: var(--guide-text-y) !important;

  width: 100% !important;

  margin: 6px 0 0 0 !important;
  padding: 0 !important;

  color: var(--guide-text-color) !important;

  font-family:
    Arial,
    Helvetica,
    sans-serif !important;

  font-size: var(--guide-text-size) !important;

  line-height: var(--guide-text-line-height) !important;

  font-weight: 400 !important;

  text-align: var(--guide-text-align) !important;

  background: transparent !important;
  background-color: transparent !important;

  border: none !important;

  visibility: visible !important;
  opacity: 1 !important;

  overflow: visible !important;

  white-space: normal !important;

  overflow-wrap: break-word !important;

  word-wrap: break-word !important;

  word-break: normal !important;

  pointer-events: auto !important;

  -moz-user-select: text !important;
  -webkit-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  white-space: pre-line !important;
}


/* =========================================================
   GUIDE OTHER TEXT ELEMENTS
========================================================= */

.guide-bubble span,
.guide-bubble div {
  color: var(--guide-text-color) !important;

  visibility: visible !important;

  opacity: 1 !important;
}


/* =========================================================
   GUIDE MOBILE
   (tablet-ish / large phones)
========================================================= */

@media (max-width: 768px) {

  :root {

    --guide-popup-left: 12px;
    --guide-popup-top: 6%;

    --guide-gap: 6px;

    --guide-image-x: -10px;
    --guide-image-y: -30px;

    --guide-bubble-x: -60px;
    --guide-bubble-y: -192px;

    --guide-text-x: 0px;
    --guide-text-y: 0px;

    --guide-title-x: 0px;
    --guide-title-y: 0px;
  }


  .guide-hotspot {
    overflow: visible !important;

    z-index: 999999 !important;
  }


  .guide-hotspot-btn {
    width: 44px !important;
    height: 44px !important;

    min-width: 44px !important;
    min-height: 44px !important;

    font-size: 24px !important;
  }


  /* Same side-by-side layout as the bigger screen — only the
     position and scale shrink, nothing gets rearranged. */
  .guide-popup {
    left: var(--guide-popup-left) !important;
    top: var(--guide-popup-top) !important;

    gap: var(--guide-gap) !important;

    overflow: visible !important;

    z-index: 9999999 !important;
  }


  .guide-gif {
    transform:
      translate(
        var(--guide-image-x),
        var(--guide-image-y)
      ) !important;
  }


  .guide-bubble {
    padding: var(--guide-bubble-padding) !important;

    font-size: var(--guide-text-size) !important;

    line-height: var(--guide-text-line-height) !important;
  }


  .guide-bubble strong {
    font-size: var(--guide-title-size) !important;

    line-height: 1.3 !important;
  }


  .guide-bubble p {
    font-size: var(--guide-text-size) !important;

    line-height: var(--guide-text-line-height) !important;
  }
}


/* =========================================================
   GUIDE VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

  :root {

    --guide-popup-left: 8px;
    --guide-popup-top: 4%;

    --guide-gap: 4px;
  }


  .guide-hotspot-btn {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

    font-size: 22px !important;
  }


  .guide-popup {
    left: var(--guide-popup-left) !important;
    top: var(--guide-popup-top) !important;

    gap: var(--guide-gap) !important;

    overflow: visible !important;
  }


  .guide-bubble {
    padding: var(--guide-bubble-padding) !important;
  }


  .guide-bubble strong {
    font-size: var(--guide-title-size) !important;
  }


  .guide-bubble p {
    font-size: var(--guide-text-size) !important;

    line-height: var(--guide-text-line-height) !important;
  }
}


/* =========================================================
   SHOP HOTSPOT
========================================================= */

.shop-hotspot {
  overflow: visible !important;

  pointer-events: auto !important;

  z-index: 100 !important;
}

.shop-hotspot .guide-hotspot-btn {
  position: relative !important;

  width: auto !important;
  height: auto !important;

  min-width: 0 !important;
  min-height: 0 !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 0 !important;

  border-radius: 0 !important;

  background: transparent !important;

  display: block !important;

  cursor: pointer !important;

  overflow: visible !important;

  pointer-events: auto !important;

  touch-action: manipulation !important;

  -webkit-appearance: none !important;
  appearance: none !important;

  z-index: 501 !important;
}

.shop-hotspot
.guide-hotspot-btn img {
  display: block;

  width: 300px;
  height: auto;

  max-width: none;

  object-fit: contain;

  pointer-events: none;

  user-select: none;

  -webkit-user-drag: none;

  filter:
    drop-shadow(
      0 6px 10px rgba(0, 0, 0, 0.5)
    );

  transition:
    transform 0.2s ease;
}

.no-touch
.shop-hotspot
.guide-hotspot-btn:hover {
  background: transparent !important;
  transform: none !important;
}


/* =========================================================
   SHOP POPUP

   FIX (same click-to-close bug as the guide popup):
   pointer-events changed from "auto" to "none" on the
   outer container so it can't swallow clicks meant for the
   shop button. .seedlings-shop-box below re-enables
   pointer-events for the actual visible/clickable content.
========================================================= */

.shop-popup {
  position: absolute !important;

  left: 250px !important;
  top: 20px !important;

  bottom: auto !important;

  display: none;

  align-items: flex-start;

  gap: 15px;

  z-index: 500 !important;

  pointer-events: none !important;
}

.shop-popup.show {
  display: flex !important;
}


/* =========================================================
   SEEDLING SHOP BOX
========================================================= */

.seedlings-shop-box {
  width: 320px;

  max-width: 320px;

  max-height: 360px;

  overflow-x: hidden;

  overflow-y: auto;

  padding: 14px !important;

  border-radius: 16px;

  pointer-events: auto;
}


/* =========================================================
   SEEDLING SHOP BOX — OVERRIDE INHERITED .guide-bubble RULES
   FIX (list not arranging past 2 items):
   .seedlings-shop-box also carries the .guide-bubble class
   (shared markup with the farm-guide popup). .guide-bubble
   forces "overflow: visible !important" and a
   "transform: translate(-100px, -400px) !important" shift,
   which are meant for the farm-guide popup only. That
   combination stops the shop box from scrolling and pushes
   it off-screen once enough seedling cards are added.
   These overrides cancel both for the shop box specifically,
   without touching the farm-guide popup's own styling.
========================================================= */

.shop-popup .guide-bubble.seedlings-shop-box {
  transform: none !important;

  overflow: hidden !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;

  width: 320px !important;
  max-width: 320px !important;
  max-height: 360px !important;
}

.seedlings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* =========================================================
   SEEDLING STATUS
========================================================= */

.seedlings-status {
  margin-top: 8px;

  font-weight: 700;

  color: #315f19;
}


/* =========================================================
   SEEDLING CARD
========================================================= */

.seedling-card {
  display: flex;

  gap: 10px;

  padding: 10px;

  background: #eef8e9;

  border:
    1px solid #cfe6c6;

  border-radius: 12px;

  align-items: flex-start;
}

.seedling-card img {
  width: 80px;
  height: 80px;

  object-fit: cover;

  border-radius: 10px;

  background: #dfead8;

  flex-shrink: 0;

  pointer-events: none;
}

.seedling-info {
  flex: 1;

  min-width: 0;
}

.seedling-info b {
  display: block;

  font-size: 14px;

  margin-bottom: 4px;

  color: #222;
}

.seedling-info span {
  display: block;

  color: #1f7a25;

  font-weight: 700;

  margin-bottom: 4px;
}

.seedling-info small {
  display: block;

  color: #666;

  margin-bottom: 2px;
}


/* =========================================================
   BUY BUTTON
========================================================= */

.buy-btn {
  display: inline-block;

  margin-top: 8px;

  padding: 8px 14px;

  background: #28a745;

  color: #fff !important;

  text-decoration: none;

  border-radius: 8px;

  font-weight: 700;

  cursor: pointer;

  pointer-events: auto;

  touch-action: manipulation;

  -webkit-tap-highlight-color: transparent;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.buy-btn:hover {
  background: #218838;

  transform: translateY(-1px);
}


/* =========================================================
   SHOP MOBILE
========================================================= */

@media (max-width: 768px) {

  .shop-hotspot
  .guide-hotspot-btn
  img {
    width: 140px;
  }

  .shop-popup {
    left: 120px !important;
    top: 10px !important;
  }

  .seedlings-shop-box {
    width: 280px;

    max-width: 280px;

    max-height: 320px;
  }

  .shop-popup .guide-bubble.seedlings-shop-box {
    width: 280px !important;
    max-width: 280px !important;
    max-height: 320px !important;
  }

  .seedling-card img {
    width: 65px;
    height: 65px;
  }
}


/* =========================================================
   SHOP VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

  .shop-hotspot
  .guide-hotspot-btn
  img {
    width: 110px;
  }

  .shop-popup {
    left: 95px !important;
    top: 5px !important;
  }

  .seedlings-shop-box {
    width: 250px;

    max-width: 250px;
  }

  .shop-popup .guide-bubble.seedlings-shop-box {
    width: 250px !important;
    max-width: 250px !important;
  }
}


/* =========================================================
   HIDE DEFAULT MARZIPANO CONTROLS
========================================================= */

#titleBar,
#autorotateToggle,
#fullscreenToggle,
#sceneListToggle,
#sceneList {
  display: none !important;
}


/* =========================================================
   START BUTTON
========================================================= */

.start-btn {
  position: fixed;

  top: 20px;
  right: 20px;

  z-index: 9999;

  background: #059669;

  color: white;

  padding: 12px 30px;

  border-radius: 9999px;

  text-decoration: none;

  font-weight: 600;

  cursor: pointer;

  pointer-events: auto;

  touch-action: manipulation;

  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.start-btn:hover {
  background: #047857;

  transform: translateY(-2px);
}


/* =========================================================
   WELCOME / GAME RULES MODAL
========================================================= */

.welcome-overlay {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100%;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background:
    rgba(0, 35, 20, 0.78);

  backdrop-filter: blur(7px);

  -webkit-backdrop-filter: blur(7px);

  z-index: 999999;

  opacity: 1;

  visibility: visible;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.welcome-overlay.hidden {
  opacity: 0;

  visibility: hidden;

  pointer-events: none;
}


/* =========================================================
   MODAL
========================================================= */

.welcome-modal {
  position: relative;

  width: 100%;

  max-width: 520px;

  max-height: 90vh;

  overflow-y: auto;

  background: #fff;

  border-radius: 24px;

  padding: 32px;

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.45);

  text-align: center;

  color: #334155;

  animation:
    welcomeModalIn 0.45s ease;
}

@keyframes welcomeModalIn {

  from {
    opacity: 0;

    transform:
      translateY(25px)
      scale(0.95);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }

}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.welcome-close {
  position: absolute;

  top: 14px;
  right: 16px;

  width: 38px;
  height: 38px;

  border: none;

  border-radius: 50%;

  background: #f1f5f3;

  color: #475569;

  font-size: 25px;

  line-height: 38px;

  padding: 0;

  cursor: pointer;

  pointer-events: auto;

  touch-action: manipulation;

  transition:
    all 0.2s ease;
}

.welcome-close:hover {
  background: #dcfce7;

  color: #166534;

  transform:
    rotate(90deg);
}


/* =========================================================
   WELCOME ICON
========================================================= */

.welcome-icon {
  width: 72px;
  height: 72px;

  margin: 0 auto 16px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 20px;

  background: #ecfdf5;

  font-size: 38px;
}


/* =========================================================
   TITLE
========================================================= */

.welcome-modal h1 {
  margin: 0;

  color: #064e3b;

  font-family:
    "Plus Jakarta Sans",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  font-size: 28px;

  font-weight: 800;

  line-height: 1.25;
}

.welcome-subtitle {
  margin: 8px 0 24px;

  color: #64748b;

  font-size: 14px;

  line-height: 1.5;
}


/* =========================================================
   GAME RULES
========================================================= */

.welcome-content {
  width: 100%;

  margin-top: 10px;

  text-align: left;
}

.welcome-content h2 {
  margin: 0 0 15px;

  color: #064e3b;

  font-size: 18px;

  font-weight: 800;

  line-height: 1.3;
}


/* =========================================================
   RULE
========================================================= */

.rule {
  display: flex;

  align-items: flex-start;

  gap: 14px;

  width: 100%;

  padding: 12px;

  margin-bottom: 9px;

  border-radius: 14px;

  background: #f8fafc;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.rule:hover {
  background: #ecfdf5;

  transform:
    translateX(3px);
}

.rule > span {
  flex-shrink: 0;

  width: 38px;
  height: 38px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: #ecfdf5;

  font-size: 19px;
}

.rule p {
  margin: 0;

  color: #64748b;

  font-size: 13px;

  line-height: 1.5;
}

.rule strong {
  color: #334155;

  font-size: 14px;

  font-weight: 700;
}


/* =========================================================
   START TOUR
========================================================= */

.start-tour {
  width: 100%;

  margin-top: 20px;

  padding: 14px 20px;

  border: none;

  border-radius: 14px;

  background: #065f46;

  color: #fff;

  font-family:
    "Plus Jakarta Sans",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  pointer-events: auto;

  touch-action: manipulation;

  box-shadow:
    0 8px 20px rgba(6, 95, 70, 0.25);

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.start-tour:hover {
  background: #047857;

  transform:
    translateY(-2px);

  box-shadow:
    0 12px 25px rgba(6, 95, 70, 0.30);
}

.start-tour:active {
  transform:
    translateY(0);
}


/* =========================================================
   WELCOME MOBILE
========================================================= */

@media (max-width: 600px) {

  .welcome-overlay {
    padding: 15px;
  }

  .welcome-modal {
    max-width: 100%;

    max-height: 92vh;

    padding: 25px 20px;

    border-radius: 20px;
  }

  .welcome-icon {
    width: 62px;
    height: 62px;

    margin-bottom: 12px;

    border-radius: 17px;

    font-size: 32px;
  }

  .welcome-modal h1 {
    font-size: 23px;
  }

  .welcome-subtitle {
    margin-bottom: 20px;

    font-size: 12px;
  }

  .welcome-content h2 {
    font-size: 17px;
  }

  .rule {
    gap: 10px;

    padding: 10px;
  }

  .rule > span {
    width: 34px;
    height: 34px;

    font-size: 17px;
  }

  .rule p {
    font-size: 12px;
  }

  .rule strong {
    font-size: 13px;
  }

  .start-tour {
    padding: 13px 18px;

    font-size: 14px;
  }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

  .welcome-modal {
    padding: 22px 16px;
  }

  .welcome-modal h1 {
    font-size: 21px;
  }

  .rule {
    padding: 9px;
  }

  .rule > span {
    width: 32px;
    height: 32px;
  }
}


/* =========================================================
   GAME HOTSPOT
========================================================= */

.game-hotspot-wrapper {

  width: 180px !important;
  height: 180px !important;

  margin-left: -90px !important;
  margin-top: -90px !important;

  display: flex !important;

  flex-direction: column !important;

  align-items: center !important;

  justify-content: flex-start !important;

  overflow: visible !important;

  visibility: visible !important;

  opacity: 1 !important;

  pointer-events: auto !important;

  z-index: 999999 !important;
}


/* =========================================================
   GAME BUTTON
   NO BLACK BOX / NO SHADOW
========================================================= */

.game-hotspot-wrapper
.game-hotspot-btn {

  position: relative !important;

  left: auto !important;
  top: auto !important;

  width: 100px !important;
  height: 100px !important;

  margin: 0 !important;

  padding: 0 !important;

  border: 0 !important;

  outline: none !important;

  border-radius: 50% !important;

  background: transparent !important;
  background-color: transparent !important;

  display: flex !important;

  align-items: center !important;

  justify-content: center !important;

  overflow: visible !important;

  cursor: pointer !important;

  visibility: visible !important;

  opacity: 1 !important;

  pointer-events: auto !important;

  touch-action: manipulation !important;

  -webkit-tap-highlight-color: transparent !important;

  -webkit-user-select: none !important;
  user-select: none !important;

  -webkit-appearance: none !important;
  appearance: none !important;

  z-index: 1000000 !important;

  box-shadow: none !important;

  text-shadow: none !important;

  transition:
    transform 0.15s ease !important;
}


/* =========================================================
   GAME IMAGE
========================================================= */

.game-hotspot-wrapper
.game-hotspot-icon {

  display: block !important;

  width: 75px !important;
  height: 75px !important;

  min-width: 75px !important;
  min-height: 75px !important;

  max-width: none !important;
  max-height: none !important;

  margin: 0 !important;

  padding: 0 !important;

  object-fit: contain !important;

  border: 0 !important;

  background: transparent !important;

  visibility: visible !important;

  opacity: 1 !important;

  pointer-events: none !important;

  user-select: none !important;

  -webkit-user-select: none !important;

  -webkit-user-drag: none !important;

  filter: none !important;
}


/* =========================================================
   GAME DESKTOP HOVER
========================================================= */

.no-touch
.game-hotspot-wrapper
.game-hotspot-btn:hover {

  transform: scale(1.08) !important;

  box-shadow: none !important;
}


/* =========================================================
   GAME ACTIVE / TOUCH
========================================================= */

.game-hotspot-wrapper
.game-hotspot-btn:active {

  transform: scale(0.94) !important;

  box-shadow: none !important;
}


/* =========================================================
   GAME LABEL
   TEXT ONLY - COMPLETELY TRANSPARENT
========================================================= */

.game-hotspot-wrapper
.game-hotspot-label {

  position: relative !important;

  top: auto !important;
  left: auto !important;

  right: auto !important;
  bottom: auto !important;

  transform: none !important;

  display: block !important;

  width: max-content !important;

  max-width: 250px !important;

  height: auto !important;

  min-width: 0 !important;
  min-height: 0 !important;

  margin:
    8px 0 0 0 !important;

  padding: 0 !important;

  background: transparent !important;

  background-color: transparent !important;

  background-image: none !important;

  color: #ffffff !important;

  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;

  border-radius: 0 !important;

  outline: none !important;

  box-shadow: none !important;

  font-family:
    Arial,
    Helvetica,
    sans-serif !important;

  font-size: 14px !important;

  font-weight: 800 !important;

  line-height: 18px !important;

  text-align: center !important;

  white-space: nowrap !important;

  overflow: visible !important;

  opacity: 1 !important;

  visibility: visible !important;

  pointer-events: none !important;

  z-index: 1000001 !important;

  text-shadow:
    0 2px 4px rgba(0, 0, 0, 1),
    0 0 7px rgba(0, 0, 0, 0.8) !important;
}


/* =========================================================
   REMOVE POSSIBLE MARZIPANO / GENERIC HOTSPOT
   LABEL BACKGROUNDS
========================================================= */

.game-hotspot-wrapper
.game-hotspot-label::before,
.game-hotspot-wrapper
.game-hotspot-label::after {

  content: none !important;

  display: none !important;

  background: transparent !important;

  border: 0 !important;

  box-shadow: none !important;
}


/* =========================================================
   GAME LABEL MOBILE
========================================================= */

@media (max-width: 768px) {

  .game-hotspot-wrapper {
    width: 160px !important;
    height: 160px !important;

    margin-left: -80px !important;
    margin-top: -80px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-btn {

    width: 90px !important;
    height: 90px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-icon {

    width: 68px !important;
    height: 68px !important;

    min-width: 68px !important;
    min-height: 68px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-label {

    margin-top: 7px !important;

    font-size: 12px !important;

    line-height: 16px !important;

    padding: 0 !important;

    background: transparent !important;

    background-color: transparent !important;

    border: none !important;

    box-shadow: none !important;
  }
}


/* =========================================================
   GAME LABEL VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

  .game-hotspot-wrapper {
    width: 145px !important;
    height: 145px !important;

    margin-left: -72.5px !important;
    margin-top: -72.5px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-btn {

    width: 82px !important;
    height: 82px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-icon {

    width: 62px !important;
    height: 62px !important;

    min-width: 62px !important;
    min-height: 62px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-label {

    margin-top: 6px !important;

    font-size: 11px !important;

    line-height: 15px !important;

    padding: 0 !important;

    background: transparent !important;

    background-color: transparent !important;

    border: none !important;

    box-shadow: none !important;
  }
}



.minimap-container {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 200px;
  height: 200px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  z-index: 9998;
  overflow: hidden;
  pointer-events: auto;

  transition:
    width 0.3s ease,
    height 0.3s ease,
    top 0.3s ease,
    left 0.3s ease,
    border-radius 0.3s ease,
    transform 0.3s ease;
}

#minimapSvg {
  width: 100%;
  height: 100%;
  display: block;
  transition: all 0.35s ease;
}

.minimap-you-marker {
  font-size: 30px;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.9));
}

.minimap-node {
  fill: #9ca3af;
  stroke: #000;
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.2s ease, r 0.2s ease;
}

.minimap-node:hover {
  fill: #d1d5db;
}

.minimap-node.current {
  fill: #22c55e;
  r: 9;
}

.minimap-info-badge {
  fill: #facc15;
  stroke: #92400e;
  stroke-width: 0.5;
  pointer-events: none;
}

/* Game / seedling-shop badge icons shown above scenes that
   contain a mini-game or the shop, so they're easy to spot
   on the minimap at a glance. */
.minimap-icon {
  font-size: 40px;
  pointer-events: none;
  user-select: none;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 4px rgba(0, 0, 0, 0.7);
}

@media (max-width: 600px) {
  .minimap-container {
    width: 150px;
    height: 150px;
    top: 12px;
    left: 12px;
  }
}


/* =========================================================
   MINIMAP — MAXIMIZE TOGGLE BUTTON
========================================================= */

#minimapMaximizeToggle {
  position: absolute;

  top: 4px;
  right: 4px;

  width: 32px;
  height: 32px;

  border: 1px solid #000;
  border-radius: 6px;

  background: rgba(0, 0, 0, 0.55);
  color: #fff;

  font-size: 13px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  pointer-events: auto;

  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;

  z-index: 10;

  transition: background 0.2s ease, transform 0.2s ease;
}

.no-touch #minimapMaximizeToggle:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.08);
}


/* =========================================================
   MINIMAP — MAXIMIZED (FULL MAP) STATE
========================================================= */

.minimap-container.maximized {
  top: 50%;
  left: 50%;

  width: min(92vw, 640px);
  height: min(92vh, 800px);

  transform: translate(-50%, -50%);

  border-radius: 18px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);

}

@media (max-width: 600px) {
  .minimap-container.maximized {
    top: 50%;
    left: 50%;

    width: min(92vw, 240px);
    height: min(92vh, 300px);

    transform: translate(-50%, -50%);

    border-radius: 18px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }

  /* NEW: bigger circular toggle button when maximized on phone */
  .minimap-container.maximized #minimapMaximizeToggle {
    width: 40px;
    height: 40px;

    border-radius: 50%; /* makes it a circle instead of rounded square */

    font-size: 20px;
  }

  .minimap-toggle img,
  .minimap-toggle .icon {
    width: 100% !important;
    height: 100% !important;
  }
}

.minimap-container.maximized #minimapMaximizeToggle {
  top: 8px;
  right: 8px;

  width: 30px;
  height: 30px;

  font-size: 16px;
}

.minimap-container.maximized .minimap-node {
  r: 10;
}

.minimap-container.maximized .minimap-node.current {
  r: 13;
}

.minimap-container.maximized .minimap-you-marker {
  font-size: 36px;
}

.minimap-container.maximized .minimap-icon {
  font-size: 40px;
}

/* Dim the rest of the page while the map is maximized. Tapping
   this backdrop closes the map again (see main.js). */
#minimapOverlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.5);

  z-index: 9997;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#minimapOverlay.show {
  opacity: 1;
  visibility: visible;

  pointer-events: auto;
}

body.minimap-maximized .minimap-container.maximized {
  z-index: 9999;
}

/* =========================================================
   FINAL HOTSPOT SIZE FIX
   Small + responsive on desktop and mobile
========================================================= */

/* -------------------------
   CUSTOM IMAGE ICONS
------------------------- */

.custom-image-hotspot {
  width: auto !important;
  height: auto !important;

  transform: translate(-50%, -50%) !important;
}

.custom-image-hotspot-icon {
  width: clamp(38px, 4.5vw, 58px) !important;
  height: clamp(38px, 4.5vw, 58px) !important;

  object-fit: contain !important;
}


/* -------------------------
   PATH ARROW
------------------------- */

.path-arrow-hotspot {
  width: clamp(42px, 4.5vw, 58px) !important;
  height: clamp(42px, 4.5vw, 58px) !important;

  margin-left: calc(
    clamp(42px, 4.5vw, 58px) / -2
  ) !important;

  margin-top: calc(
    clamp(42px, 4.5vw, 58px) / -2
  ) !important;

  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;

  overflow: visible !important;
}

.path-arrow-icon {
  width: 100% !important;
  height: 100% !important;

  font-size: clamp(28px, 3vw, 40px) !important;

  filter:
    drop-shadow(
      0 4px 5px rgba(0, 0, 0, 0.45)
    ) !important;
}

.path-arrow-hotspot:hover
.path-arrow-icon {
  filter:
    drop-shadow(
      0 5px 7px rgba(0, 0, 0, 0.55)
    ) !important;
}


/* -------------------------
   PATH ARROW LABEL
------------------------- */

.path-arrow-direction-label {
  bottom: -15px !important;
  font-size: clamp(9px, 1.5vw, 12px) !important;
  color: #000;
  line-height: 1 !important;
  transform: translateX(7px) !important;

  /* White outline around the text */
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
}


/* -------------------------
   GAME HOTSPOT
------------------------- */

.game-hotspot-wrapper {
  width: clamp(90px, 12vw, 140px) !important;
  height: clamp(90px, 12vw, 140px) !important;

  margin-left: calc(
    clamp(90px, 12vw, 140px) / -2
  ) !important;

  margin-top: calc(
    clamp(90px, 12vw, 140px) / -2
  ) !important;
}

.game-hotspot-wrapper
.game-hotspot-btn {
  width: clamp(60px, 7vw, 85px) !important;
  height: clamp(60px, 7vw, 85px) !important;
}

.game-hotspot-wrapper
.game-hotspot-icon {
  width: clamp(48px, 5.5vw, 68px) !important;
  height: clamp(48px, 5.5vw, 68px) !important;
}

.game-hotspot-wrapper
.game-hotspot-label {
  margin-top: 4px !important;

  font-size: clamp(9px, 1.4vw, 13px) !important;

  line-height: 1.2 !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  .custom-image-hotspot-icon {
    width: 44px !important;
    height: 44px !important;
  }


  .path-arrow-hotspot {
    width: 48px !important;
    height: 48px !important;

    margin-left: -24px !important;
    margin-top: -24px !important;
  }

  .path-arrow-icon {
    width: 48px !important;
    height: 48px !important;

    font-size: 30px !important;
  }

  .path-arrow-direction-label {
    bottom: -13px !important;

    font-size: 9px !important;
  }


  .game-hotspot-wrapper {
    width: 105px !important;
    height: 105px !important;

    margin-left: -52.5px !important;
    margin-top: -52.5px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-btn {
    width: 65px !important;
    height: 65px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-icon {
    width: 52px !important;
    height: 52px !important;

    min-width: 52px !important;
    min-height: 52px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-label {
    margin-top: 4px !important;

    font-size: 10px !important;

    line-height: 13px !important;
  }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

  .custom-image-hotspot-icon {
    width: 38px !important;
    height: 38px !important;
  }


  .path-arrow-hotspot {
    width: 42px !important;
    height: 42px !important;

    margin-left: -21px !important;
    margin-top: -21px !important;
  }

  .path-arrow-icon {
    width: 42px !important;
    height: 42px !important;

    font-size: 26px !important;
  }

  .path-arrow-direction-label {
    bottom: -11px !important;

    font-size: 8px !important;
  }


  .game-hotspot-wrapper {
    width: 90px !important;
    height: 90px !important;

    margin-left: -45px !important;
    margin-top: -45px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-btn {
    width: 58px !important;
    height: 58px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-icon {
    width: 46px !important;
    height: 46px !important;

    min-width: 46px !important;
    min-height: 46px !important;
  }

  .game-hotspot-wrapper
  .game-hotspot-label {
    font-size: 9px !important;

    line-height: 12px !important;
  }
}