/* ═══════════════════════════════════════════════════════════
   SoulsGuides — Aviso de "modo rendimiento" (toast) + toggle footer
   Sugerencia opt-in para activar/desactivar el modo rendimiento cuando
   el navegador dibuja por software (sin aceleración por hardware).
   Se mantiene DELIBERADAMENTE ligero (sin blur / backdrop-filter):
   su público son justo los equipos sin compositing por GPU.
   ═══════════════════════════════════════════════════════════ */

.sg-perf-toast {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10000;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 18px 20px 16px;
  background: var(--bg2, #12100c);
  border: 1px solid color-mix(in srgb, var(--gold, #c4a35a) 38%, transparent);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3);
  color: var(--text, #b0a898);
  font-family: var(--ff, 'Cinzel', serif);
  transform: translateX(calc(-100% - 32px));
  opacity: 0;
  visibility: hidden;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .4s ease, visibility 0s linear .4s;
}

.sg-perf-toast.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}

.sg-perf-toast__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: 0;
  color: var(--text, #b0a898);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  opacity: .6;
  transition: opacity .2s, color .2s;
}

.sg-perf-toast__close:hover {
  opacity: 1;
  color: var(--gold-l, #d4b86c);
}

.sg-perf-toast__title {
  margin: 0 24px 6px 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-l, #e0d8cc);
  letter-spacing: .2px;
}

.sg-perf-toast__text {
  margin: 0 0 14px;
  font-size: .86rem;
  line-height: 1.5;
  font-family: Georgia, 'Times New Roman', serif;
}

.sg-perf-toast__btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: var(--gold, #c4a35a);
  color: var(--bg, #0a0908);
  border: 0;
  border-radius: 6px;
  font-family: var(--ff, 'Cinzel', serif);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .2s, transform .12s;
}

.sg-perf-toast__btn:hover {
  background: var(--gold-l, #d4b86c);
}

.sg-perf-toast__btn:active {
  transform: translateY(1px);
}

.sg-perf-toast__opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .78rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--text, #b0a898) 85%, transparent);
}

.sg-perf-toast__opt input {
  margin-top: 2px;
  accent-color: var(--gold, #c4a35a);
  cursor: pointer;
  flex: 0 0 auto;
}

.sg-perf-toast__opt label {
  cursor: pointer;
}

.sg-perf-toast__note {
  margin: 10px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .72rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--text, #b0a898) 62%, transparent);
}

@media (max-width: 480px) {
  .sg-perf-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
}

/* ── Control fijo del footer (siempre visible) ───────────────────────── */
.ft-perf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  padding: 5px 12px;
  font-family: var(--ff, 'Cinzel', serif);
  font-size: 12px;
  line-height: 1;
  color: var(--text-l, #e0d8cc);
  background: color-mix(in srgb, var(--gold, #c4a35a) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold, #c4a35a) 42%, transparent);
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}

.ft-perf-toggle:hover {
  background: color-mix(in srgb, var(--gold, #c4a35a) 18%, transparent);
  border-color: var(--gold, #c4a35a);
  color: var(--white, #f0e8dc);
}

.ft-perf-toggle__ico {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.ft-perf-toggle__ico path {
  fill: var(--gold, #c4a35a);
}

.ft-perf-toggle__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text, #b0a898) 40%, transparent);
  transition: background .25s, box-shadow .25s;
}

/* Estado activo (modo rendimiento ON) — el punto se enciende */
.ft-perf-toggle.is-on .ft-perf-toggle__dot {
  background: var(--gold-l, #d4b86c);
  box-shadow: 0 0 6px color-mix(in srgb, var(--gold, #c4a35a) 80%, transparent);
}
