/* SimpleLife Web – V3 RESET */

:root {
  color-scheme: dark;
  --sl-bg: #050308;
  --sl-surface: #14101b;
  --sl-surface-soft: #181426;
  --sl-border-soft: rgba(148, 163, 184, 0.4);
  --sl-primary: #f97316;
  --sl-primary-soft: rgba(249, 115, 22, 0.2);
  --sl-accent: #a855f7;
  --sl-accent-soft: rgba(168, 85, 247, 0.2);
  --sl-lime: #a3e635;
  --sl-text: #f9fafb;
  --sl-muted: #9ca3af;
}

/* Base */

body {
  min-height: 100vh;
  margin: 0;
  background: var(--sl-bg);
  color: var(--sl-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Ocultar cursor nativo en escritorio */

@media (pointer: fine) {
  body,
  a,
  button,
  input,
  select,
  textarea,
  label,
  [role="button"],
  .pack-card {
    cursor: none !important;
  }
}

/* Fondo reactivo */

.sl-bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 55%) var(--my, 25%), rgba(249, 115, 22, 0.25), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(132, 204, 22, 0.22), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.22), transparent 60%),
    #050308;
  transition: background-position 0.15s ease-out;
}

/* Cursor custom */

.sl-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.9);
  background:
    radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.6), transparent 65%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.5), transparent 65%);
  pointer-events: none;
  transform: translate(-9999px, -9999px);
  z-index: 60;
  opacity: 0.95;
  transition:
    transform 0.04s ease-out,
    width 0.12s ease,
    height 0.12s ease,
    opacity 0.2s ease;
}

.sl-cursor--hidden {
  opacity: 0;
}

.sl-cursor--active {
  width: 26px;
  height: 26px;
}

/* Navbar */

.nav-blur {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 3, 8, 0.98),
    rgba(5, 3, 8, 0.9),
    rgba(5, 3, 8, 0.0)
  );
  border-bottom: 1px solid rgba(24, 16, 32, 0.85);
  box-shadow: 0 16px 40px rgba(5, 3, 8, 0.9);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #e5e5f0;
  padding: 0.25rem 0;
  text-decoration: none;
}

.nav-link span {
  pointer-events: none;
}

.nav-link:hover {
  color: #fefce8;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.3rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sl-primary), var(--sl-accent));
  transform: scaleX(0.2);
  opacity: 0;
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-link.nav-link--active {
  color: #fefce8;
}

.nav-link.nav-link--active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Tarjetas genéricas */

.section-card {
  border-radius: 1.4rem;
  border: 1px solid var(--sl-border-soft);
  background:
    radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.04), transparent 55%),
    var(--sl-surface);
  box-shadow:
    0 18px 40px rgba(5, 3, 8, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.9) inset;
}

/* Hero grande */

.page-hero {
  border-radius: 1.6rem;
  border: 1px solid rgba(250, 204, 21, 0.3);
  background:
    radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.25), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.25), transparent 60%),
    linear-gradient(135deg, #050308, #14101b 50%, #050308);
  box-shadow:
    0 24px 60px rgba(5, 3, 8, 0.98),
    0 0 0 1px rgba(24, 16, 32, 0.92) inset;
}

/* Pills / badges */

.accent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.55);
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.35), rgba(24, 16, 32, 0.98));
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fed7aa;
}

/* Botones */

.btn-primary {
  background: linear-gradient(90deg, var(--sl-primary), var(--sl-accent));
  color: #050308;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.07);
}

.btn-outline {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(12, 10, 24, 0.9);
  color: #f9fafb;
}

.btn-outline:hover {
  border-color: rgba(250, 204, 21, 0.9);
}

/* Chips */

.chip {
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.78rem;
}

/* Packs (Market) */

.pack-card {
  position: relative;
  border-radius: 1.4rem;
  padding: 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.3), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.3), transparent 55%),
    var(--sl-surface-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 18px 45px rgba(5, 3, 8, 0.98),
    0 0 0 1px rgba(15, 23, 42, 0.9) inset;
  transform-style: preserve-3d;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.pack-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.25) 45%,
    rgba(255, 255, 255, 0.0) 100%
  );
  transform: translateX(-120%) rotate(16deg);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.pack-card:hover,
.pack-card:focus-visible {
  transform: translateY(-4px) rotateX(3deg) rotateY(-3deg);
  box-shadow:
    0 26px 70px rgba(5, 3, 8, 1.0),
    0 0 0 1px rgba(249, 115, 22, 0.28) inset;
  outline: none;
}

.pack-card:hover::before,
.pack-card:focus-visible::before {
  opacity: 1;
  transform: translateX(120%) rotate(16deg);
}

/* Rarezas */

.rarity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Common */
.pack-card--common {
  border-color: rgba(148, 163, 184, 0.7);
}

/* Uncommon */
.pack-card--uncommon {
  border-color: rgba(249, 115, 22, 0.9);
}

/* Rare */
.pack-card--rare {
  border-color: rgba(236, 72, 153, 0.9);
}

/* Epic */
.pack-card--epic {
  border-color: rgba(168, 85, 247, 0.95);
}

/* Legendary */

@keyframes holoPulse {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pack-card--legendary {
  border-color: rgba(250, 204, 21, 0.95);
  background:
    radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.45), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.45), transparent 60%),
    linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(236, 72, 153, 0.32), rgba(250, 204, 21, 0.32));
  background-size: 160% 160%;
  animation: holoPulse 18s ease-in-out infinite;
}

/* Acordeón Normativas */

.rule-card {
  border-radius: 1.3rem;
  border: 1px solid var(--sl-border-soft);
  background:
    radial-gradient(circle at 0 0, rgba(168, 85, 247, 0.18), transparent 55%),
    var(--sl-surface-soft);
  box-shadow: 0 16px 40px rgba(5, 3, 8, 0.96);
}

.rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.35rem 0;
}

.rule-header:hover {
  color: #fef9c3;
}

.rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.7rem;
  color: #e5e7eb;
}

.rule-accent {
  border-left-width: 3px;
  border-radius: 1.25rem;
  padding-left: 0.85rem;
}

.rule-accent--coins { border-left-color: var(--sl-primary); }
.rule-accent--don  { border-left-color: #22c55e; }
.rule-accent--ref  { border-left-color: #f97373; }
.rule-accent--vip  { border-left-color: #a855f7; }
.rule-accent--sec  { border-left-color: #facc15; }
.rule-accent--p2f  { border-left-color: #ec4899; }

/* Texto monoespaciado pequeño */

.mono-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  padding: 0.06rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Footer */

.footer-line {
  border-top: 1px solid rgba(24, 16, 32, 1);
  background:
    radial-gradient(circle at top, rgba(24, 16, 32, 0.9), transparent 60%),
    #050308;
}
