/*
  WLands - Cum ma joc? Clean cinematic popup
*/

body.guide-open {
  overflow: hidden;
}

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.guide-modal.open {
  display: flex;
}

.guide-panel {
  position: relative;
  width: min(1180px, 96vw);
  min-height: 620px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  display: block;
}

.guide-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: .22s ease;
}

.guide-close:hover {
  background: rgba(255,31,45,.26);
}

.guide-character {
  position: absolute;
  right: 36px;
  bottom: 14px;
  width: min(220px, 16vw);
  min-height: 0;
  height: auto;
  padding: 0;
  background: transparent !important;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}


.guide-character::before,
.guide-character::after {
  content: none !important;
  display: none !important;
}

.guide-character img {
  width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: bottom right;
  display: block;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.50)) drop-shadow(0 0 18px rgba(255,31,45,.18));
  animation: guideLogoPulse 2.2s ease-in-out infinite;
  transform-origin: center center;
}

.guide-leaves {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.guide-leaves .leaf {
  position: absolute;
  width: 22px;
  height: 14px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(255,119,65,.95), rgba(196,0,18,.88));
  box-shadow: 0 8px 22px rgba(255,56,56,.22);
  opacity: .42;
  filter: saturate(1.1);
  animation: leafFloat 9s linear infinite;
}

.guide-leaves .leaf::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,236,214,.38);
  transform: translate(-50%, -52%) rotate(38deg);
}

.guide-leaves .leaf-1 { left: 67%; top: 12%; animation-delay: 0s; }
.guide-leaves .leaf-2 { left: 73%; top: 22%; width: 18px; height: 12px; animation-delay: -1.6s; }
.guide-leaves .leaf-3 { left: 80%; top: 16%; width: 24px; height: 15px; animation-delay: -3s; }
.guide-leaves .leaf-4 { left: 71%; top: 40%; width: 20px; height: 13px; animation-delay: -4.7s; }
.guide-leaves .leaf-5 { left: 84%; top: 34%; width: 16px; height: 11px; animation-delay: -6.1s; }
.guide-leaves .leaf-6 { left: 77%; top: 50%; width: 22px; height: 14px; animation-delay: -7.8s; }

@keyframes leafFloat {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .38; }
  50% { transform: translate3d(18px, 64px, 0) rotate(110deg); opacity: .48; }
  100% { transform: translate3d(-16px, 128px, 0) rotate(235deg); opacity: 0; }
}

@keyframes guideLogoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: .96;
    filter: drop-shadow(0 18px 32px rgba(0,0,0,.50)) drop-shadow(0 0 10px rgba(255,31,45,.14));
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
    filter: drop-shadow(0 20px 36px rgba(0,0,0,.54)) drop-shadow(0 0 24px rgba(255,31,45,.30));
  }
}


.guide-content {
  position: relative;
  z-index: 3;
  width: min(760px, 68vw);
  padding: 44px 0 0 30px;
  display: block;
}

.guide-kicker {
  display: none !important;
}

.guide-content h2 {
  margin: 0;
  font-family: 'Black Ops One', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 4.2vw, 4.2rem);
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 12px 36px rgba(0,0,0,.38);
  max-width: 100%;
  white-space: nowrap;
}

.guide-intro {
  margin: 22px 0 26px;
  color: rgba(255,255,255,.84);
  line-height: 1.8;
  max-width: 620px;
  font-size: 1.08rem;
}

.guide-main {
  display: block;
}

.guide-list {
  display: none !important;
}

.guide-text-card {
  position: relative;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0;
  padding: 0;
  min-height: 280px;
  display: block;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none !important;
}

.guide-text-card::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 8px;
  bottom: 46px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff1f2d, rgba(196,0,18,.18));
  box-shadow: 0 0 20px rgba(255,31,45,.24);
}

.guide-count {
  color: var(--accent-2, #ff1f2d);
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: .9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.guide-text-card h3 {
  margin: 0 0 16px;
  font-family: 'Black Ops One', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 2.8vw, 2.75rem);
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.guide-typed {
  position: relative;
  margin: 0;
  color: rgba(255,255,255,.9);
  line-height: 1.95;
  min-height: 150px;
  max-width: 620px;
  font-size: 1.12rem;
  letter-spacing: .2px;
  text-shadow: 0 6px 20px rgba(0,0,0,.28);
}

.guide-typed.typing::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1.1em;
  margin-left: 5px;
  vertical-align: -2px;
  background: #ff1f2d;
  animation: guideCursor .75s steps(2, start) infinite;
  box-shadow: 0 0 12px rgba(255,31,45,.6);
}

@keyframes guideCursor {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.guide-controls {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 0;
}

.guide-controls button[data-guide-prev],
.guide-controls button[data-guide-next] {
  display: none !important;
}

.guide-controls button {
  border: 0;
  cursor: pointer;
  border-radius: 13px;
  padding: 12px 14px;
  font-weight: 900;
  color: #fff;
  background: rgba(255,255,255,.07);
  transition: .22s ease;
}

.guide-controls button:hover:not(:disabled) {
  background: rgba(255,31,45,.24);
}

.guide-voice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #c40012, #ff1f2d) !important;
}

.guide-voice.playing {
  box-shadow: 0 0 24px rgba(255,31,45,.22);
}

@media (max-width: 1000px) {
  .guide-panel {
    min-height: 620px;
  }

  .guide-content {
    width: min(620px, 88vw);
    padding: 60px 0 0 18px;
  }

  .guide-character {
    width: min(180px, 24vw);
    right: 18px;
    bottom: 10px;
    opacity: .98;
  }

  .guide-leaves .leaf {
    opacity: .34;
  }
}

@media (max-width: 620px) {
  .guide-modal {
    padding: 16px;
    align-items: flex-start;
    padding-top: 80px;
  }

  .guide-panel {
    width: 100%;
    min-height: 580px;
  }

  .guide-content {
    width: 100%;
    padding: 16px 8px 0 18px;
  }

  .guide-content h2 {
    font-size: 2rem;
    white-space: normal;
  }

  .guide-intro,
  .guide-typed {
    font-size: .98rem;
  }

  .guide-character {
    width: 120px;
    right: 10px;
    bottom: 10px;
    opacity: .98;
  }

  .guide-leaves {
    opacity: .65;
  }

  .guide-text-card::before {
    left: -12px;
  }
}



/* Semnatura tutorial */
.guide-close {
  display: none !important;
}

.guide-signature {
  display: none;
  margin-top: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.guide-signature.show {
  display: block;
  animation: signatureIn .35s ease forwards;
}

.guide-signature h3 {
  margin: 0 0 10px;
  font-family: 'Black Ops One', system-ui, sans-serif;
  text-transform: uppercase;
  font-size: 1.3rem;
  color: #fff;
}

.guide-signature p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
}

.guide-sign-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.guide-signature-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.guide-signature-btn small {
  color: rgba(255,255,255,.62);
  font-weight: 700;
  letter-spacing: .3px;
}

.guide-signature-btn span {
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 10px 26px rgba(0,0,0,.35);
  position: relative;
}

.guide-signature-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff1f2d, rgba(255,31,45,0));
  opacity: .75;
}

.guide-signature-btn:hover span {
  color: #ffdedf;
  transform: translateY(-1px);
}

.guide-signature-btn:hover small {
  color: rgba(255,255,255,.9);
}

.guide-complete-note {
  display: none;
  margin-top: 14px;
  color: rgba(255,255,255,.84);
  font-weight: 800;
}

.guide-complete-note.show {
  display: block;
}

@keyframes signatureIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
