/* Sabelotodo — right-edge launcher (mirror of daily message left tab) */

.sabelotodo-launcher {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 309;
  pointer-events: none;
}

.sabelotodo-launcher__tab {
  pointer-events: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 1.625rem;
  max-width: 2.125rem;
  margin: 0;
  padding: 0.625rem 0.3125rem 0.5rem 0.375rem;
  border: none;
  border-radius: 0.625rem 0 0 0.625rem;
  background: linear-gradient(
    180deg,
    rgba(46, 111, 168, 0.92) 0%,
    rgba(91, 164, 201, 0.78) 100%
  );
  box-shadow:
    0 0 0 1px rgba(46, 111, 168, 0.18),
    0 4px 14px rgba(46, 111, 168, 0.22);
  cursor: pointer;
  touch-action: manipulation;
  transition:
    max-width 0.45s ease,
    padding 0.45s ease,
    box-shadow 0.3s ease;
}

.sabelotodo-launcher__tab:hover,
.sabelotodo-launcher__tab:focus-visible {
  max-width: 2.375rem;
  box-shadow:
    0 0 0 1px rgba(46, 111, 168, 0.28),
    0 6px 18px rgba(46, 111, 168, 0.28);
  outline: none;
}

.sabelotodo-launcher__logo {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

.sabelotodo-launcher__text {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  writing-mode: vertical-lr;
  text-orientation: mixed;
  white-space: nowrap;
  overflow: hidden;
  max-height: 5.5rem;
  line-height: 1;
}

.sabelotodo-launcher__arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.92);
  transform: rotate(180deg);
}

.sabelotodo-launcher__tab.is-hint-done .sabelotodo-launcher__text {
  opacity: 0;
  max-height: 0;
}

.sabelotodo-launcher__tab.is-hint-done {
  max-width: 1.5rem;
  padding: 0.5rem 0.3125rem;
}

[data-theme="dark"] .sabelotodo-launcher__tab {
  background: linear-gradient(
    180deg,
    rgba(91, 164, 201, 0.88) 0%,
    rgba(46, 111, 168, 0.72) 100%
  );
  box-shadow:
    0 0 0 1px rgba(91, 164, 201, 0.2),
    0 4px 14px rgba(0, 0, 0, 0.24);
}

body[data-page="sabelotodo"] .sabelotodo-launcher,
body[data-page="juegos"] .sabelotodo-launcher,
body[data-page="game-369"] .sabelotodo-launcher {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .sabelotodo-launcher__tab {
    transition: none;
  }
}
