/* =========================================================
   HOME-FINAL.CSS — CLEAN GUIDE PROFILE MODE
   Siivottu versio: guide-overlay, RPG-paneelit, retkivalinnat,
   aloitus/power-napit ja kapea punainen vaakalaser-väreily.
   ========================================================= */

/* =========================================================
   1. GUIDE MODE: DIM + BLUR
   ========================================================= */

body.guide-mode-active {
  overflow: hidden !important;
}

#guidePageDim {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99980 !important;

  width: 100vw !important;
  height: 100svh !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;

  background:
    radial-gradient(
      ellipse at center,
      rgba(80, 50, 15, 0.18) 0%,
      rgba(0, 0, 0, 0.58) 56%,
      rgba(0, 0, 0, 0.86) 100%
    ) !important;

  backdrop-filter: blur(9px) !important;
  -webkit-backdrop-filter: blur(9px) !important;

  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease !important;
}

body.guide-mode-active #guidePageDim {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.guide-mode-active .site-banner,
body.guide-mode-active .trezor-banner {
  z-index: 1000 !important;
}

/* =========================================================
   2. GUIDE OVERLAY DESKTOP MASTER LAYOUT
   Näitä muuttujia säätämällä koko desktop-asettelu liikkuu.
   --guide-top liikuttaa kaikkia kolmea pääelementtiä alas/ylös.
   ========================================================= */

@media (min-width: 901px) {
  :root {
    --guide-top: clamp(230px, 28svh, 330px);
    --guide-panel-w: clamp(270px, 21vw, 335px);
    --guide-center-w: clamp(245px, 22vw, 330px);
    --guide-img-w: clamp(235px, 19vw, 315px);
    --guide-gap: clamp(34px, 5vw, 92px);
    --guide-right-offset: clamp(54px, 8svh, 92px);
    --guide-power-top: calc(var(--guide-top) - 62px);
  }

  #guideCharacterReveal.guide-profile-mode {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99995 !important;

    width: 100vw !important;
    height: 100svh !important;
    max-width: none !important;
    max-height: none !important;

    display: grid !important;
    grid-template-columns:
      var(--guide-panel-w)
      var(--guide-center-w)
      var(--guide-panel-w) !important;
    grid-template-areas: "left center right" !important;

    align-items: start !important;
    justify-content: center !important;

    column-gap: var(--guide-gap) !important;
    row-gap: 0 !important;

    padding:
      var(--guide-top)
      clamp(18px, 3vw, 44px)
      24px !important;

    margin: 0 !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    background: transparent !important;
    overflow: hidden !important;
    box-sizing: border-box !important;

    transform: none !important;

    transition:
      opacity 0.36s ease,
      visibility 0.36s ease !important;
  }

  #guideCharacterReveal.guide-profile-mode.is-active,
  body.guide-mode-active #guideCharacterReveal.guide-profile-mode {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .guide-profile-left {
    grid-area: left !important;
    align-self: start !important;
    justify-self: center !important;
    margin-top: 48px !important;
    transform: none !important;
  }

  .guide-profile-center {
    grid-area: center !important;
    align-self: start !important;
    justify-self: center !important;

    position: relative !important;
    width: var(--guide-center-w) !important;
    max-width: var(--guide-center-w) !important;
    min-width: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .guide-profile-right {
    grid-area: right !important;
    align-self: start !important;
    justify-self: center !important;
    margin-top: var(--guide-right-offset) !important;
    transform: none !important;
  }
}

/* =========================================================
   3. GUIDE PROFILE PANELS
   ========================================================= */

.guide-profile-panel {
  position: relative !important;

  width: 100% !important;
  max-width: 360px !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 30px 30px 28px !important;

  color: #efcf88 !important;

  border: 1px solid rgba(220, 164, 38, 0.82) !important;
  border-radius: 28px !important;

  background:
    linear-gradient(
      to bottom,
      rgba(8, 6, 3, 0.92),
      rgba(8, 5, 2, 0.84)
    ) !important;

  box-shadow:
    0 0 0 1px rgba(255, 221, 130, 0.06) inset,
    0 22px 48px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(224, 162, 37, 0.15) !important;

  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;

  box-sizing: border-box !important;
}

@media (min-width: 901px) {
  .guide-profile-panel {
    width: var(--guide-panel-w) !important;
    max-width: var(--guide-panel-w) !important;
    padding:
      clamp(18px, 1.8vw, 25px)
      clamp(18px, 1.8vw, 26px)
      clamp(17px, 1.7vw, 24px) !important;
    border-radius: clamp(20px, 2vw, 27px) !important;
  }
}

.guide-panel-top-ornament {
  position: absolute !important;
  top: -24px !important;
  left: 50% !important;

  width: 92px !important;
  height: 42px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  color: #d9a72f !important;
  font-size: 22px !important;

  transform: translateX(-50%) !important;

  background:
    radial-gradient(
      ellipse at center,
      rgba(218, 166, 47, 0.28),
      transparent 70%
    ) !important;
}

.guide-profile-panel h2 {
  margin: 0 0 24px !important;

  color: #d9a72f !important;
  font-family: "Cinzel", "Vollkorn SC", serif !important;
  font-size: clamp(18px, 1.5vw, 25px) !important;
  font-weight: 600 !important;
  line-height: 1.22 !important;
  letter-spacing: 0.14em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

.guide-character-class {
  margin: -10px 0 24px !important;
  color: #d7bd86 !important;
  font-family: "Cinzel", "Vollkorn SC", serif !important;
  font-size: 14px !important;
  font-style: italic !important;
  letter-spacing: 0.22em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

.guide-level {
  display: flex !important;
  justify-content: space-between !important;
  gap: 14px !important;

  margin-bottom: 9px !important;

  color: #f2ddb0 !important;
  font-family: "Cormorant Garamond", serif !important;
  font-size: 18px !important;
}

.guide-level strong {
  color: #d9a72f !important;
  font-size: 32px !important;
  line-height: 1 !important;
}

.guide-level small {
  align-self: flex-end !important;
  color: #d9c087 !important;
  font-size: 14px !important;
}

.guide-xp-bar,
.guide-stat-bar {
  width: 100% !important;
  height: 10px !important;

  border: 1px solid rgba(222, 166, 42, 0.65) !important;
  border-radius: 999px !important;

  background:
    linear-gradient(
      to bottom,
      rgba(20, 11, 4, 0.95),
      rgba(8, 5, 2, 0.95)
    ) !important;

  overflow: hidden !important;
}

.guide-xp-bar {
  margin-bottom: 26px !important;
}

.guide-xp-bar span,
.guide-stat-bar span {
  display: block !important;
  height: 100% !important;

  border-radius: inherit !important;

  background:
    linear-gradient(
      90deg,
      #b47003 0%,
      #efbd36 38%,
      #ffd86a 52%,
      #b47003 100%
    ) !important;

  box-shadow: 0 0 12px rgba(255, 189, 54, 0.45) !important;
}

.guide-xp-bar span {
  width: 72% !important;
}

.guide-stat {
  margin-bottom: 17px !important;
}

.guide-stat-row {
  display: grid !important;
  grid-template-columns: 34px 1fr auto !important;
  align-items: center !important;
  gap: 10px !important;

  margin-bottom: 6px !important;

  color: #efcf88 !important;
  font-family: "Cinzel", "Vollkorn SC", serif !important;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.guide-stat-icon,
.guide-skill-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: 1px solid rgba(223, 167, 42, 0.75) !important;
  border-radius: 50% !important;

  color: #efc95e !important;
  background: rgba(222, 166, 42, 0.1) !important;
}

.guide-stat-icon {
  width: 30px !important;
  height: 30px !important;
  font-family: "Times New Roman", "Segoe UI Symbol", "Noto Sans Runic", serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.guide-stat-row strong {
  color: #f2c34a !important;
  font-family: "Cormorant Garamond", serif !important;
  font-size: 20px !important;
}

.guide-profile-quote {
  margin: 24px 0 0 !important;

  color: #d7bd86 !important;
  font-family: "Cormorant Garamond", serif !important;
  font-size: 21px !important;
  line-height: 1.25 !important;
  font-style: italic !important;
  text-align: center !important;
}

@media (min-width: 901px) {
  .guide-profile-panel h2 {
    margin: 0 0 8px !important;
    font-size: clamp(16px, 1.35vw, 22px) !important;
    line-height: 1.08 !important;
    letter-spacing: 0.17em !important;
  }

  .guide-character-class {
    margin: 0 0 clamp(14px, 1.6vw, 22px) !important;
    font-size: clamp(11px, 0.95vw, 14px) !important;
    line-height: 1 !important;
    letter-spacing: 0.24em !important;
  }

  .guide-level {
    margin-bottom: 5px !important;
    font-size: clamp(13px, 1vw, 16px) !important;
    line-height: 1 !important;
  }

  .guide-level strong {
    font-size: clamp(20px, 1.7vw, 27px) !important;
  }

  .guide-level small {
    font-size: clamp(10px, 0.9vw, 13px) !important;
  }

  .guide-xp-bar,
  .guide-stat-bar {
    height: clamp(6px, 0.7vw, 9px) !important;
  }

  .guide-xp-bar {
    margin-bottom: clamp(13px, 1.6vw, 21px) !important;
  }

  .guide-stat {
    margin-bottom: clamp(8px, 1.1vw, 14px) !important;
  }

  .guide-stat-row {
    grid-template-columns: clamp(22px, 2vw, 30px) 1fr auto !important;
    gap: clamp(6px, 0.8vw, 10px) !important;
    margin-bottom: 4px !important;
    font-size: clamp(9.5px, 0.88vw, 12px) !important;
    line-height: 1 !important;
    letter-spacing: 0.1em !important;
  }

  .guide-stat-icon {
    width: clamp(21px, 1.9vw, 28px) !important;
    height: clamp(21px, 1.9vw, 28px) !important;
    font-size: clamp(12px, 1.2vw, 17px) !important;
  }

  .guide-stat-row strong {
    font-size: clamp(15px, 1.4vw, 19px) !important;
    line-height: 1 !important;
  }

  .guide-profile-quote {
    margin-top: clamp(10px, 1.4vw, 18px) !important;
    font-size: clamp(14px, 1.25vw, 18px) !important;
    line-height: 1.16 !important;
  }
}

/* =========================================================
   4. GUIDE CENTER IMAGE + KAPEAT PUNAISET LASER-VIIVAT
   ========================================================= */

.guide-character-frame {
  position: relative !important;

  width: 350px !important;
  max-width: 350px !important;
  min-width: 0 !important;

  display: block !important;

  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;

  transform: none !important;
}

@media (min-width: 901px) {
  .guide-character-frame {
    width: var(--guide-img-w) !important;
    max-width: var(--guide-img-w) !important;
  }
}

.guide-character-img {
  position: relative !important;
  z-index: 4 !important;

  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 !important;

  opacity: 1 !important;
  visibility: visible !important;

  transform: none !important;

  filter:
    drop-shadow(0 22px 34px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 18px rgba(255, 190, 70, 0.15)) !important;
}

.guide-character-light {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  z-index: 0 !important;

  width: calc(var(--guide-img-w) + 70px) !important;
  height: calc(var(--guide-img-w) + 120px) !important;

  display: block !important;

  transform: translateX(-50%) !important;

  background:
    radial-gradient(
      ellipse at center,
      rgba(239, 171, 42, 0.20) 0%,
      rgba(160, 88, 18, 0.10) 38%,
      transparent 72%
    ) !important;

  filter: blur(24px) !important;
  pointer-events: none !important;
}

.guide-character-frame::before,
.guide-character-frame::after {
  content: none !important;
  display: none !important;
  animation: none !important;
  background: none !important;
  opacity: 0 !important;
}

.guide-red-aura {
  position: absolute !important;
  inset: 0 !important;
  z-index: 9 !important;

  display: block !important;
  pointer-events: none !important;

  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 9px,
      rgba(255, 0, 0, 0.95) 9px,
      rgba(255, 0, 0, 0.95) 9.35px,
      transparent 9.45px,
      transparent 15px
    ) !important;

  mix-blend-mode: screen !important;

  opacity: 0.82 !important;

  filter:
    brightness(1.35)
    saturate(1.5)
    drop-shadow(0 0 3px rgba(255, 0, 0, 0.55)) !important;

  animation:
    guideThinLaserPulse 0.9s steps(2, end) infinite,
    guideThinLaserMove 1.6s linear infinite !important;
}

@keyframes guideThinLaserPulse {
  0% {
    opacity: 0.48;
  }

  50% {
    opacity: 0.92;
  }

  100% {
    opacity: 0.58;
  }
}

@keyframes guideThinLaserMove {
  0% {
    transform: translateY(-4px);
    background-position: 0 0;
  }

  50% {
    transform: translateY(3px);
    background-position: 0 10px;
  }

  100% {
    transform: translateY(-4px);
    background-position: 0 20px;
  }
}

/* =========================================================
   5. RIGHT SIDE OPTIONS
   ========================================================= */

.guide-options-panel {
  display: flex !important;
  flex-direction: column !important;
}

.guide-options-panel h2 {
  margin-bottom: 26px !important;
}

.guide-options-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  margin-top: 6px !important;
}

.guide-option-card {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;

  min-height: 82px !important;
  padding: 14px 16px !important;

  color: #f5d778 !important;
  text-decoration: none !important;

  border: 1px solid rgba(218, 165, 32, 0.62) !important;
  border-radius: 999px !important;

  background:
    linear-gradient(
      180deg,
      rgba(31, 58, 35, 0.92),
      rgba(18, 36, 22, 0.94)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 236, 160, 0.22),
    0 0 18px rgba(218, 165, 32, 0.14) !important;

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease !important;
}

.guide-option-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 216, 112, 0.95) !important;

  background:
    linear-gradient(
      180deg,
      rgba(43, 76, 45, 0.96),
      rgba(22, 45, 27, 0.98)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 245, 190, 0.32),
    0 0 26px rgba(218, 165, 32, 0.24) !important;
}

.guide-option-icon {
  flex: 0 0 46px !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: 1px solid rgba(218, 165, 32, 0.7) !important;
  border-radius: 50% !important;

  color: #e0aa1f !important;
  font-size: 22px !important;
  line-height: 1 !important;

  background: rgba(0, 0, 0, 0.24) !important;
}

.guide-option-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  text-align: left !important;
}

.guide-option-text strong {
  font-family: "Cinzel", "Vollkorn SC", serif !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #f2d173 !important;
}

.guide-option-text small {
  font-family: "Cormorant Garamond", serif !important;
  font-size: 15px !important;
  line-height: 1.18 !important;
  color: #d8c08c !important;
}

@media (min-width: 901px) {
  .guide-options-panel h2 {
    margin-bottom: clamp(15px, 2vw, 24px) !important;
  }

  .guide-options-list {
    gap: clamp(10px, 1.5vw, 17px) !important;
  }

  .guide-option-card {
    min-height: clamp(62px, 7.5svh, 82px) !important;
    padding:
      clamp(10px, 1.2vw, 14px)
      clamp(12px, 1.4vw, 17px) !important;
  }

  .guide-option-icon {
    width: clamp(36px, 3.2vw, 46px) !important;
    height: clamp(36px, 3.2vw, 46px) !important;
    min-width: clamp(36px, 3.2vw, 46px) !important;
    font-size: clamp(15px, 1.5vw, 21px) !important;
  }

  .guide-option-text strong {
    font-size: clamp(12px, 1.05vw, 15px) !important;
    line-height: 1.06 !important;
  }

  .guide-option-text small {
    font-size: clamp(11px, 1vw, 14px) !important;
    line-height: 1.14 !important;
  }
}

/* =========================================================
   6. OPTIONAL CENTER SERVICE BUTTONS
   Jos .guide-service-buttons on mukana HTML:ssä, se toimii edelleen.
   ========================================================= */

.guide-service-buttons {
  position: relative !important;
  z-index: 8 !important;

  width: min(420px, 90vw) !important;
  max-width: 420px !important;

  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;

  margin: -58px auto 0 !important;
  padding: 0 !important;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.guide-service-btn {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 18px !important;

  border: 1px solid rgba(191, 167, 108, 0.95) !important;
  border-radius: 999px !important;

  background:
    linear-gradient(
      to bottom,
      rgba(42, 60, 39, 0.97),
      rgba(22, 34, 21, 0.98)
    ) !important;

  color: #efd489 !important;
  -webkit-text-fill-color: #efd489 !important;

  font-family: "Cinzel", "Vollkorn SC", serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
}

.guide-service-btn:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(215, 181, 102, 1) !important;

  background:
    linear-gradient(
      to bottom,
      rgba(52, 74, 48, 0.98),
      rgba(31, 46, 29, 0.98)
    ) !important;

  box-shadow:
    0 0 18px rgba(96, 116, 88, 0.18),
    0 12px 26px rgba(0, 0, 0, 0.35) !important;
}

/* =========================================================
   7. GUIDE SELECT BUTTON + POWER BUTTON
   ========================================================= */

body > .guide-select-area {
  position: absolute !important;
  top: 61vh !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;

  z-index: 60 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  max-width: calc(100vw - 32px) !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: translateX(-50%) !important;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body > .guide-select-area .guide-select-buttons {
  position: relative !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: max-content !important;
  max-width: calc(100vw - 32px) !important;

  margin: 0 !important;
  padding: 0 !important;
}

#guideSelectBtn.guide-select-btn,
#home .guide-select-btn {
  position: relative !important;
  z-index: 2 !important;

  min-width: 190px !important;
  min-height: 55px !important;
  padding: 12px 24px 11px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 13px !important;
  border: 1px solid rgba(198, 151, 42, 0.95) !important;

  background:
    linear-gradient(
      to bottom,
      rgba(95, 61, 15, 0.96) 0%,
      rgba(38, 24, 8, 0.98) 28%,
      rgba(13, 11, 8, 1) 58%,
      rgba(3, 3, 3, 1) 100%
    ) !important;

  color: #f1c861 !important;
  -webkit-text-fill-color: #f1c861 !important;

  font-family: "Cinzel", "Vollkorn SC", serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.115em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;

  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.95),
    0 0 8px rgba(250, 186, 0, 0.22) !important;

  box-shadow:
    0 0 0 1px rgba(255, 224, 113, 0.23) inset,
    0 2px 0 rgba(255, 224, 113, 0.18) inset,
    0 -8px 18px rgba(0, 0, 0, 0.72) inset,
    0 8px 20px rgba(0, 0, 0, 0.62),
    0 0 18px rgba(250, 186, 0, 0.13) !important;

  cursor: pointer !important;
  overflow: hidden !important;
  isolation: isolate !important;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    filter 180ms ease !important;
}

#guideSelectBtn.guide-select-btn::before,
#home .guide-select-btn::before {
  content: "" !important;
  position: absolute !important;
  inset: 3px !important;
  z-index: 1 !important;

  border: 1px solid rgba(250, 186, 0, 0.42) !important;
  border-radius: 10px !important;
  pointer-events: none !important;
}

#guideSelectBtn.guide-select-btn::after,
#home .guide-select-btn::after {
  content: "" !important;
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  top: 5px !important;
  z-index: 0 !important;

  height: 42% !important;
  border-radius: 999px 999px 40px 40px !important;

  background:
    linear-gradient(
      to bottom,
      rgba(255, 221, 113, 0.21),
      rgba(255, 180, 60, 0.08) 48%,
      rgba(255, 180, 60, 0) 100%
    ) !important;

  pointer-events: none !important;
}

#guideSelectBtn.guide-select-btn:hover,
#home .guide-select-btn:hover {
  color: #ffe39a !important;
  -webkit-text-fill-color: #ffe39a !important;
  border-color: rgba(250, 186, 0, 1) !important;
  filter: brightness(1.06) contrast(1.04) !important;

  box-shadow:
    0 0 0 1px rgba(255, 224, 113, 0.32) inset,
    0 2px 0 rgba(255, 224, 113, 0.23) inset,
    0 -8px 18px rgba(0, 0, 0, 0.72) inset,
    0 9px 24px rgba(0, 0, 0, 0.68),
    0 0 24px rgba(250, 186, 0, 0.24) !important;
}

#guideSelectBtn.guide-select-btn:active,
#guideSelectBtn.guide-select-btn.is-active,
#home .guide-select-btn:active,
#home .guide-select-btn.is-active {
  transform: translateY(2px) !important;

  background:
    linear-gradient(
      to bottom,
      rgba(24, 15, 5, 1) 0%,
      rgba(9, 8, 6, 1) 50%,
      rgba(2, 2, 2, 1) 100%
    ) !important;

  color: #d8a936 !important;
  -webkit-text-fill-color: #d8a936 !important;

  box-shadow:
    0 0 0 1px rgba(255, 224, 113, 0.18) inset,
    0 4px 12px rgba(0, 0, 0, 0.88) inset,
    0 3px 10px rgba(0, 0, 0, 0.58),
    0 0 11px rgba(250, 186, 0, 0.12) !important;
}

#guidePowerBtn.guide-power-btn {
  position: absolute !important;
  top: 50% !important;
  left: calc(100% + 8px) !important;
  z-index: 3 !important;

  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid rgba(250, 186, 0, 0.95) !important;
  border-radius: 50% !important;

  background:
    radial-gradient(
      circle at 35% 25%,
      rgba(255, 246, 190, 1),
      rgba(235, 150, 28, 1) 48%,
      rgba(82, 33, 4, 1) 100%
    ) !important;

  color: #2b1402 !important;
  -webkit-text-fill-color: #2b1402 !important;

  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  cursor: pointer !important;

  transform: translateY(-50%) !important;

  box-shadow:
    0 4px 0 #3b1d06,
    0 0 0 2px rgba(250, 186, 0, 0.18),
    0 0 18px rgba(250, 186, 0, 0.42),
    0 10px 18px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    inset 0 -4px 7px rgba(60, 28, 4, 0.48) !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.guide-mode-active #guideSelectBtn.guide-select-btn {
  display: none !important;
}

body.guide-mode-active #guidePowerBtn.guide-power-btn {
  position: fixed !important;
  top: var(--guide-power-top) !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;

  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: translateX(-50%) !important;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;

  z-index: 100900 !important;

  font-size: 18px !important;
}

body.guide-mode-active #guidePowerBtn.guide-power-btn:hover {
  transform: translateX(-50%) !important;
}

body.guide-mode-active #guidePowerBtn.guide-power-btn:active {
  transform: translateX(-50%) translateY(2px) !important;
}

#guideSelectBtn.guide-select-btn:focus,
#guideSelectBtn.guide-select-btn:focus-visible,
#guidePowerBtn.guide-power-btn:focus,
#guidePowerBtn.guide-power-btn:focus-visible {
  outline: none !important;
}

/* =========================================================
   8. SMALL DESKTOP AND MOBILE
   ========================================================= */

@media (min-width: 901px) and (max-width: 1199px) {
  :root {
    --guide-top: clamp(120px, 18svh, 210px);
    --guide-panel-w: clamp(250px, 27vw, 290px);
    --guide-center-w: clamp(230px, 26vw, 300px);
    --guide-img-w: clamp(210px, 25vw, 280px);
    --guide-gap: clamp(20px, 3vw, 36px);
    --guide-right-offset: clamp(42px, 7svh, 76px);
  }
}

@media (max-width: 900px) {
  #guideCharacterReveal.guide-profile-mode {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99995 !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "center"
      "left"
      "right" !important;

    align-items: start !important;
    justify-items: center !important;

    gap: 18px !important;
    padding: 96px 14px 32px !important;

    width: 100vw !important;
    height: 100svh !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    background: transparent !important;
    box-sizing: border-box !important;
  }

  #guideCharacterReveal.guide-profile-mode.is-active,
  body.guide-mode-active #guideCharacterReveal.guide-profile-mode {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .guide-profile-left {
    grid-area: left !important;
  }

  .guide-profile-center {
    grid-area: center !important;
    width: min(390px, 92vw) !important;
    max-width: 92vw !important;
  }

  .guide-profile-right {
    grid-area: right !important;
  }

  .guide-character-frame {
    width: min(300px, 76vw) !important;
    max-width: 76vw !important;
  }

  .guide-profile-panel {
    width: min(560px, 92vw) !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    padding: 22px 18px !important;
    border-radius: 22px !important;
  }

  .guide-service-buttons {
    width: min(84vw, 320px) !important;
    max-width: 320px !important;
    margin: -8px auto 0 !important;
    gap: 8px !important;
  }

  .guide-service-btn {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
  }
}

@media (max-width: 600px) {
  body > .guide-select-area {
    top: 33vh !important;
    max-width: calc(100vw - 22px) !important;
  }

  body > .guide-select-area .guide-select-buttons {
    max-width: calc(100vw - 72px) !important;
  }

  #guideSelectBtn.guide-select-btn,
  #home .guide-select-btn {
    min-width: 185px !important;
    min-height: 54px !important;
    padding: 11px 22px 10px !important;
    font-size: 9.5px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.11em !important;
    border-radius: 13px !important;
  }

  #guideSelectBtn.guide-select-btn::before,
  #home .guide-select-btn::before {
    inset: 3px !important;
    border-radius: 10px !important;
  }

  body.guide-mode-active #guidePowerBtn.guide-power-btn {
    top: 54px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    font-size: 16px !important;
  }

  #guideCharacterReveal.guide-profile-mode {
    padding: 92px 12px 28px !important;
  }

  .guide-character-frame {
    width: min(265px, 74vw) !important;
    max-width: 74vw !important;
  }

  .guide-profile-panel h2 {
    font-size: 17px !important;
  }

  .guide-level {
    font-size: 16px !important;
  }

  .guide-level strong {
    font-size: 26px !important;
  }

  .guide-stat-row {
    grid-template-columns: 30px 1fr auto !important;
    gap: 8px !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
  }

  .guide-stat-icon {
    width: 27px !important;
    height: 27px !important;
  }

  .guide-profile-quote {
    font-size: 19px !important;
  }
}

/* =========================================================
   9. MISC
   ========================================================= */

body.guide-mode-active .fixed-gold-scroll {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
