:root {
  color-scheme: light;
  --bg: #fef6f0;
  --surface: #fdf0ea;
  --surface-2: #fbe3d9;
  --line: rgba(52, 28, 16, 0.15);
  --accent: #ff7a6a;
  --accent-2: #f3c363;
  --text: #2f1a10;
  --muted: rgba(47, 26, 16, 0.65);
  --gradient-hero: linear-gradient(160deg, #fff1ea 0%, #fde2d4 60%, #ffd5d5 100%);
  --gradient-card: linear-gradient(155deg, #fff8f4 0%, #ffe6df 80%);
  --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-title: "Space Grotesk", "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  background: radial-gradient(circle at top, rgba(255, 200, 170, 0.4), transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.nova-shell {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 2px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nova-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 138, 106, 0.3);
  background: linear-gradient(135deg, #ffaa95 0%, #ff9580 50%, #ff806b 100%);
  position: sticky;
  top: 1px;
  z-index: 8;
  box-shadow: 0 20px 38px rgba(255, 122, 106, 0.25);
}

.header-logo {
  max-height: 52px;
  width: auto;
}

.nova-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.deck-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--gradient-hero);
  box-shadow: 0 20px 50px rgba(250, 173, 149, 0.25);
}

.hero-text h1 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
}

.lead {
  margin: 0 0 14px;
  color: var(--muted);
}

.hero-marquee {
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 125, 0.35);
  background: rgba(255, 255, 255, 0.9);
  margin-top: 12px;
  position: relative;
  padding: 6px 0;
}

.marquee-track {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  animation: marquee 18s linear infinite;
}

.hero-marquee span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(255, 138, 106, 0.2);
  background: rgba(255, 255, 255, 0.8);
}

.hero-marquee::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.9));
  pointer-events: none;
}

.hero-marquee span[data-pill="pix"] {
  background: rgba(255, 241, 218, 0.9);
  border-color: rgba(255, 193, 118, 0.5);
  color: #a75c10;
}

.hero-marquee span[data-pill="apps"] {
  background: rgba(255, 230, 239, 0.9);
  border-color: rgba(255, 122, 122, 0.35);
  color: #b03b4a;
}

.hero-marquee span[data-pill="promo"] {
  background: rgba(231, 242, 255, 0.9);
  border-color: rgba(120, 168, 255, 0.35);
  color: #375493;
}

.hero-marquee span[data-pill="vip"] {
  background: rgba(255, 236, 210, 0.95);
  border-color: rgba(255, 201, 122, 0.4);
  color: #a25a15;
}

.hero-marquee span[data-pill="cash"] {
  background: rgba(233, 255, 239, 0.95);
  border-color: rgba(88, 201, 128, 0.4);
  color: #22653e;
}

.hero-marquee span[data-pill="alert"] {
  background: rgba(255, 226, 226, 0.95);
  border-color: rgba(255, 133, 133, 0.4);
  color: #b03636;
}

.hero-marquee span[data-pill="seguro"] {
  background: rgba(233, 235, 255, 0.95);
  border-color: rgba(133, 133, 255, 0.35);
  color: #3b3ba8;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.deck-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.deck-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.deck-label {
  font-weight: 600;
  margin: 0 0 2px;
}

.deck-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.refresh-btn {
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.deck-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 138, 106, 0.25);
  background: var(--gradient-card);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 110px;
  box-shadow: 0 10px 18px rgba(2, 6, 8, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.deck-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 96px;
}

.deck-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.card-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 138, 106, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.deck-card:not(.deck-card--featured) .card-logo {
  margin-bottom: -2px;
}

.card-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 0;
}

.card-tags {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}

.card-action {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--accent);
}

.card-action svg {
  stroke: currentColor;
}

.deck-card--featured .card-action {
  grid-column: 1 / -1;
  justify-self: flex-end;
  margin-top: 0;
}

.pulse-belt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.pulse-belt article {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(250, 193, 160, 0.2);
}

.belt-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pulse-belt h3 {
  margin: 6px 0;
  font-size: 1.4rem;
  font-family: var(--font-title);
}

.layer-grid {
  display: grid;
  gap: 14px;
}

.layer-grid article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 138, 106, 0.2);
  box-shadow: 0 12px 28px rgba(217, 132, 97, 0.18);
}

.layer-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.layer-grid h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.guide-stack {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(150deg, #fffdf8 0%, #ffeede 55%, #ffd9c0 100%);
  box-shadow: 0 20px 36px rgba(215, 120, 88, 0.22);
}

.guide-intro h2 {
  margin: 4px 0 8px;
  font-family: var(--font-title);
  font-size: 1.3rem;
}

.guide-cards {
  display: grid;
  gap: 14px;
}

.guide-cards article {
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 138, 106, 0.12);
}

.guide-cards h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.guide-cards a {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.nova-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-title {
  font-weight: 600;
  color: var(--text);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 138, 106, 0.25);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  background: rgba(255, 255, 255, 0.8);
}

.footer-socials a:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.footer-socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .nova-shell {
    width: min(720px, 100%);
    padding: 28px 32px 48px;
  }

  .deck-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .deck-card--featured {
    grid-column: span 2;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .guide-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Entry Modal */
.entry-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 8, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.entry-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.entry-modal__content {
  width: min(88vw, 320px);
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(255, 246, 241, 0.98), rgba(255, 229, 218, 0.95));
  border-radius: 18px;
  border: 1px solid rgba(255, 138, 106, 0.3);
  box-shadow: 0 22px 60px rgba(2, 6, 8, 0.5);
  padding: clamp(0.9rem, 4vw, 1.2rem);
  position: relative;
  text-align: center;
  color: #1a0a00;
  box-sizing: border-box;
}

.entry-modal__close {
  position: absolute;
  right: 0.65rem;
  top: 0.45rem;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 138, 106, 0.4);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  color: #8b4513;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(2, 6, 8, 0.2);
}

.entry-modal__close:hover {
  background: rgba(255, 138, 106, 0.9);
  border-color: rgba(255, 138, 106, 0.8);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 138, 106, 0.4);
}

.entry-modal__image {
  display: block;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 106, 0.2);
  box-shadow: 0 4px 12px rgba(2, 6, 8, 0.15);
}

.entry-modal__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.entry-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.1rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff8a6a 0%, #ffb88c 50%, #ffc5a0 100%);
  color: #1a0a00;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.9rem;
}

.entry-modal__action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 138, 106, 0.4);
}

@media (max-width: 480px) {
  .entry-modal__content {
    width: min(90vw, 300px);
    max-height: calc(100vh - 2rem);
    padding: 0.8rem;
    border-radius: 16px;
  }

  .entry-modal__image {
    margin-bottom: 0.5rem;
  }

  .entry-modal__action {
    min-height: 1.7rem;
    font-size: 0.78rem;
  }

  .entry-modal__close {
    right: 0.65rem;
    top: 0.45rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 360px) {
  .entry-modal__content {
    width: 94vw;
    padding: 0.65rem;
    border-radius: 14px;
  }

  .entry-modal__action {
    min-height: 1.5rem;
    font-size: 0.75rem;
  }
}

/* Floating Support Icon */
.floating-support {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 138, 106, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(2, 6, 8, 0.25);
  z-index: 998;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.floating-support:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 138, 106, 0.4);
  border-color: rgba(255, 138, 106, 0.6);
}

.floating-support img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .floating-support {
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
  }

  .floating-support img {
    width: 36px;
    height: 36px;
  }
}

