/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #0E1015;
  --bg-alt: #181A20;
  --bg-alt-a: rgba(24,26,32,.88);
  --bg-card: #14161C;
  --line: #262A33;

  --cyan: #00F0FF;
  --purple: #8A2BE2;
  --rblx-red: #E2242A;
  --white: #F4F6FA;
  --muted: #8B92A4;

  --grad-hero: linear-gradient(135deg, rgba(0,240,255,0.16), rgba(138,43,226,0.14) 55%, rgba(226,36,42,0.10));

  --font-display: "Orbitron", "Inter", sans-serif;
  --font-sans: "Inter", "Poppins", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius: 14px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --maxw: 1320px;
}

[data-theme="light"] {
  --bg: #F4F6FA;
  --bg-alt: #FFFFFF;
  --bg-alt-a: rgba(255,255,255,.88);
  --bg-card: #FFFFFF;
  --line: #E2E6EE;
  --white: #12141A;
  --muted: #565D6E;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--font-display); }
ul { list-style: none; padding: 0; }
::selection { background: var(--cyan); color: #04121a; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cyan); color: #04121a;
  z-index: 9999; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--cyan); border-radius: 2px; transform: rotate(45deg); box-shadow: 0 0 10px var(--cyan); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-top: .4rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .9rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
}
.btn-primary { background: linear-gradient(120deg, var(--cyan), var(--purple)); color: #04121a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(0,240,255,.5); }
.btn-ghost { border: 1px solid var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.chip {
  padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .78rem; font-weight: 600; color: var(--muted);
  transition: all .3s var(--ease-out);
}
.chip.is-active, .chip:hover { color: var(--bg); background: var(--cyan); border-color: var(--cyan); }

/* =============================================================
   3b. Dynamic background (parallax on scroll)
   ============================================================= */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: -25%;
  background-image:
    linear-gradient(rgba(0,240,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  will-change: transform;
}
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(138,43,226,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,43,226,.07) 1px, transparent 1px);
}
.bg-blob {
  position: absolute;
  width: min(56vw, 620px);
  height: min(56vw, 620px);
  border-radius: 50%;
  filter: blur(80px);
  opacity: .32;
  will-change: transform;
}
.bg-blob-1 { top: -12%; left: -12%; background: radial-gradient(circle, var(--cyan), transparent 70%); }
.bg-blob-2 { top: 38%; right: -16%; background: radial-gradient(circle, var(--purple), transparent 70%); }
.bg-blob-3 { bottom: -18%; left: 18%; background: radial-gradient(circle, var(--rblx-red), transparent 70%); }

@media (prefers-reduced-motion: reduce) {
  .bg-grid, .bg-blob { transform: none !important; }
}

.logo {
  position: relative;
}
.logo-signature {
  position: absolute;
  right: -6px;
  bottom: -12px;
  transform: rotate(-16deg);
  transform-origin: bottom right;
  font-family: "Permanent Marker", cursive;
  font-size: .82rem;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 1px 0 rgba(0,0,0,.5), 0 0 8px rgba(0,240,255,.35);
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}
[data-theme="light"] .logo-signature { color: var(--purple); text-shadow: 0 1px 0 rgba(255,255,255,.6); }

.footer-signature-wrap {
  display: flex;
  justify-content: center;
  padding-top: 1.6rem;
}
.footer-signature {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--cyan);
  text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 16px rgba(0,240,255,.3);
  transform: rotate(-4deg);
  display: inline-block;
}
[data-theme="light"] .footer-signature { color: var(--purple); text-shadow: 0 2px 0 rgba(255,255,255,.5); }

/* Promo codes */
.promo-section { padding-block: clamp(2.2rem, 6vw, 3.5rem); }
.promo-eyebrow { color: #6ee7a0; }
.promo-eyebrow::before { background: #6ee7a0; box-shadow: 0 0 10px #6ee7a0; }
.promo-sub { color: var(--muted); font-size: .85rem; margin-top: .5rem; }
.promo-track {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .6rem; margin-top: 1.6rem;
  scroll-snap-type: x mandatory;
}
.promo-card {
  scroll-snap-align: start;
  flex: 0 0 220px;
  background: linear-gradient(160deg, rgba(110,231,160,.10), rgba(20,22,28,.9));
  border: 1px dashed rgba(110,231,160,.5);
  border-radius: var(--radius);
  padding: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.promo-card:hover {
  transform: translateY(-4px);
  border-color: #6ee7a0;
  border-style: solid;
  box-shadow: 0 12px 28px -12px rgba(110,231,160,.4);
}
.promo-card-exp {
  display: inline-block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: #6ee7a0; font-family: var(--font-display); margin-bottom: .6rem;
}
.promo-card-code {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--white);
  letter-spacing: .02em; word-break: break-word;
}
.promo-card-reward { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.promo-card-tap {
  display: flex; align-items: center; gap: .35rem;
  font-size: .72rem; color: #6ee7a0; margin-top: .8rem; font-weight: 700;
}
.promo-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #14161c; border: 1px solid #6ee7a0; color: var(--white);
  padding: .7rem 1.2rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
}
.promo-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Wiki articles */
.wiki-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.wiki-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; cursor: pointer; transition: transform .3s var(--ease-out), border-color .3s;
  text-align: left; width: 100%;
}
.wiki-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.wiki-card-icon { font-size: 1.6rem; }
.wiki-card h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 800; margin-top: .7rem; }
.wiki-card p { font-size: .86rem; color: var(--muted); margin-top: .5rem; }
.wiki-card-open { font-size: .76rem; color: var(--cyan); font-weight: 700; margin-top: .9rem; display: block; }

.wiki-modal {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: center; justify-content: center; padding: var(--gutter);
}
.wiki-modal[hidden] { display: none; }
.wiki-modal-panel {
  position: relative; width: 100%; max-width: 920px; max-height: 84vh;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  animation: modalIn .35s var(--ease-out);
}
@media (min-width: 800px) {
  .wiki-modal-panel { grid-template-columns: 230px 1fr; }
}
.wiki-toc {
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
  padding: 1.2rem 1rem; overflow-y: auto; max-height: 200px;
}
@media (min-width: 800px) {
  .wiki-toc { border-bottom: none; border-right: 1px solid var(--line); max-height: 84vh; }
}
.wiki-toc-label {
  display: block; font-family: var(--font-display); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .8rem;
}
.wiki-toc a {
  display: block; font-size: .85rem; padding: .4rem .5rem; border-radius: 8px; color: var(--muted);
  transition: background .2s, color .2s;
}
.wiki-toc a:hover, .wiki-toc a.is-active { background: rgba(0,240,255,.08); color: var(--cyan); }
.wiki-content { padding: 1.8rem 1.6rem 2rem; overflow-y: auto; max-height: 84vh; }
.wiki-content h3 { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 800; margin-top: .5rem; }
.wiki-content-updated { font-size: .76rem; color: var(--muted); margin-top: .3rem; margin-bottom: 1.2rem; }
.wiki-section { margin-bottom: 1.8rem; scroll-margin-top: 1rem; }
.wiki-section h4 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 800; margin-bottom: .6rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.wiki-section:first-child h4 { border-top: none; padding-top: 0; }
.wiki-section p { font-size: .92rem; color: var(--muted); line-height: 1.7; margin-bottom: .7rem; }
.wiki-table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .88rem; }
.wiki-table th, .wiki-table td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
.wiki-table th { color: var(--muted); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }

/* =============================================================
   4. Header
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,16,21,.75);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .site-header { background: rgba(244,246,250,.8); }

.header-row { display: flex; align-items: center; gap: 1.4rem; padding-block: .9rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--rblx-red), var(--purple) 60%, var(--cyan));
  position: relative; flex-shrink: 0;
  box-shadow: 0 0 18px -2px rgba(0,240,255,.6);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 8px; border: 2px solid rgba(255,255,255,.85); border-radius: 4px;
  transform: rotate(12deg);
}
.logo-text {
  background: linear-gradient(120deg, var(--white), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.main-nav { display: none; gap: 1.6rem; margin-inline: auto; }
.main-nav a { font-size: .92rem; font-weight: 600; color: var(--muted); transition: color .25s; position: relative; }
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.search-box { display: none; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; }
.search-box input { background: none; border: 0; color: var(--white); font-size: .85rem; width: 140px; }
.search-box input:focus { outline: none; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); }
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.lang-select { border: 1px solid var(--line); border-radius: 10px; padding: .4rem .6rem; background: var(--bg-card); color: var(--white); font-size: .8rem; }
.burger { display: grid; place-items: center; width: 38px; height: 38px; }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .search-box { display: flex; }
  .burger { display: none; }
}

/* Ad slot */
.ad-slot {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  height: 52px; margin-inline: var(--gutter); margin-bottom: .8rem;
  border: 1px dashed var(--line); border-radius: 10px;
  color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
}
.ad-slot-size { opacity: .6; }
@media (min-width: 960px) {
  .ad-slot { height: 90px; }
}

/* Sound toggle */
.icon-btn[data-sound-toggle] .icon-sound-off { display: none; }
.icon-btn[data-sound-toggle].is-on .icon-sound-on { display: block; }
.icon-btn[data-sound-toggle].is-on { color: var(--cyan); border-color: var(--cyan); }
.icon-btn[data-sound-toggle]:not(.is-on) .icon-sound-off { display: block; }
.icon-btn[data-sound-toggle]:not(.is-on) .icon-sound-on { display: none; }

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  background: var(--grad-hero);
  border-bottom: 1px solid var(--line);
}
.hero-blocks { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.hero-block {
  position: absolute; border-radius: 6px;
  background: linear-gradient(145deg, rgba(0,240,255,.28), rgba(138,43,226,.22));
  border: 1px solid rgba(255,255,255,.08);
  animation: floatBlock 14s ease-in-out infinite;
}
@keyframes floatBlock {
  0%, 100% { transform: translate3d(0,0,0) rotate3d(1,1,0,0deg); }
  50% { transform: translate3d(0,-26px,0) rotate3d(1,1,0,18deg); }
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 2.4rem; }
.hero-copy { max-width: 640px; }
.hero-copy h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  background: linear-gradient(120deg, var(--white) 30%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.hero-slider { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(20,22,28,.7); overflow: hidden; }
.slide { display: none; padding: 1.6rem; gap: .6rem; cursor: pointer; transition: background .25s; }
.slide.is-active:hover { background: rgba(0,240,255,.05); }
.slide-read-more { font-size: .78rem; font-weight: 700; color: var(--cyan); margin-top: .3rem; }
.slide.is-active { display: grid; }
.slide-tag { font-family: var(--font-display); font-size: .68rem; letter-spacing: .12em; padding: .3rem .7rem; border-radius: 999px; width: fit-content; }
.slide-tag.accent-cian { background: rgba(0,240,255,.15); color: var(--cyan); }
.slide-tag.accent-purpura { background: rgba(138,43,226,.2); color: #c79bff; }
.slide-tag.accent-rojo { background: rgba(226,36,42,.2); color: #ff7b7f; }
.slide h3 { font-size: 1.2rem; font-family: var(--font-sans); font-weight: 800; }
.slide p { color: var(--muted); font-size: .92rem; }
.slide-dots { display: flex; gap: .5rem; padding: 0 1.6rem 1.4rem; }
.slide-dots button { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: all .3s; }
.slide-dots button.is-active { background: var(--cyan); width: 22px; }

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; }
}

/* =============================================================
   6. Top 5 live + table
   ============================================================= */
.top-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); margin-bottom: 2.6rem; }
.top-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; position: relative; overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .4s;
}
.top-card:hover { transform: translateY(-6px); border-color: var(--cyan); }
.top-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120px 120px at 20% 0%, rgba(0,240,255,.18), transparent);
  transition: opacity .4s;
}
.top-card:hover::before { opacity: 1; }
.top-rank { font-family: var(--font-display); font-size: 1.6rem; color: var(--cyan); }
.top-name { font-weight: 800; margin-top: .3rem; font-size: 1.02rem; }
.top-meta { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; font-size: .8rem; color: var(--muted); }
.live-dot { display: inline-flex; align-items: center; gap: .35rem; color: #6ee7a0; font-weight: 700; }
.live-dot::before { content: ""; width: 7px; height: 7px; background: #6ee7a0; border-radius: 50%; box-shadow: 0 0 8px #6ee7a0; animation: pulseDot 1.6s infinite; }
@keyframes pulseDot { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.change { font-weight: 700; }
.change.up { color: #6ee7a0; }
.change.down { color: #ff7b7f; }
.change.flat { color: var(--muted); }

.table-controls { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }

.rank-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 700; color: var(--white);
  transition: border-color .3s, color .3s;
}
.rank-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.rank-toggle-icon { transition: transform .3s var(--ease-out); }
.rank-toggle[aria-expanded="true"] .rank-toggle-icon { transform: rotate(180deg); }
.rank-collapse[hidden] { display: none; }

.rank-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.rank-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.rank-table th, .rank-table td { padding: .85rem 1.1rem; text-align: left; font-size: .88rem; border-bottom: 1px solid var(--line); }
.rank-table th { font-family: var(--font-display); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table tbody tr { transition: background .25s; }
.rank-table tbody tr:hover { background: rgba(0,240,255,.05); }

/* =============================================================
   7. News
   ============================================================= */
.news-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); }
.news-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; transition: border-color .3s, transform .35s var(--ease-out); }
.news-card:hover { border-color: var(--purple); transform: translateY(-4px); }
.news-card .eyebrow { color: #c79bff; font-size: .66rem; }
.news-card .eyebrow::before { background: #c79bff; box-shadow: 0 0 10px #c79bff; }
.news-card h3 { font-size: 1.02rem; font-family: var(--font-sans); font-weight: 800; margin-top: .6rem; }
.news-card p { color: var(--muted); font-size: .88rem; margin-top: .5rem; }
.news-date { display: block; margin-top: .9rem; font-size: .75rem; color: var(--muted); }
.news-card[hidden] { display: none; }
.news-card { cursor: pointer; }
.news-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.news-card.is-fresh { animation: newsEnter .6s var(--ease-bounce); }
@keyframes newsEnter {
  0% { opacity: 0; transform: translateY(-18px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.news-fresh-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-left: .5rem; padding: .12rem .5rem; border-radius: 999px;
  background: rgba(110,231,160,.16); color: #6ee7a0;
  font-family: var(--font-display); font-size: .6rem; letter-spacing: .08em;
  animation: freshPulse 1.8s ease-in-out 3;
}
@keyframes freshPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  .news-card.is-fresh { animation: none; }
  .news-fresh-badge { animation: none; }
}

/* News modal */
.news-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
}
.news-modal[hidden] { display: none; }
.news-modal-overlay {
  position: absolute; inset: 0; background: rgba(6,7,10,.72); backdrop-filter: blur(4px);
}
.news-modal-panel {
  position: relative; max-width: 560px; width: 100%; max-height: 82vh; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.8rem 1.8rem; animation: modalIn .35s var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.news-modal-panel h3 { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 800; margin-top: .6rem; }
.news-modal-panel p { color: var(--muted); font-size: .96rem; margin-top: 1rem; line-height: 1.7; }
.news-modal-more { display: inline-flex; margin-top: 1.4rem; }
.news-modal-panel .news-date { margin-top: .5rem; }
.news-modal-close {
  position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line);
}
.news-modal-close:hover { border-color: var(--cyan); color: var(--cyan); }
@media (prefers-reduced-motion: reduce) {
  .news-modal-panel { animation: none; }
}

/* =============================================================
   8. Videos
   ============================================================= */
.video-track-wrap { position: relative; }
.video-track { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
.video-card {
  scroll-snap-align: start; flex: 0 0 260px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease-out), border-color .3s;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.video-thumb {
  aspect-ratio: 16/9;
  display: grid; place-items: center; position: relative;
  overflow: hidden;
}
.video-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 10px, transparent 10px 22px);
  mix-blend-mode: overlay;
}
.video-thumb-icon {
  font-size: 2.6rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.45));
  transform: rotate(-6deg);
}
.video-thumb-hd {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--font-display); font-size: .58rem; letter-spacing: .06em;
  padding: .18rem .4rem; border-radius: 4px;
  background: rgba(0,0,0,.55); color: #fff;
}
.video-thumb::after {
  content: ""; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92);
  clip-path: polygon(35% 25%, 35% 75%, 75% 50%);
  position: relative; z-index: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  transition: transform .3s var(--ease-bounce);
}
.video-card:hover .video-thumb::after { transform: scale(1.1); }
.video-body { padding: .9rem 1rem 1.1rem; }
.video-body h3 { font-family: var(--font-sans); font-size: .92rem; font-weight: 800; }
.video-meta { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: .5rem; }
.video-card[hidden] { display: none; }

/* Shorts (estilo YouTube: tarjetas verticales 9:16) */
.shorts-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem;
  margin-top: 2.4rem; margin-bottom: 1.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.shorts-eyebrow { color: var(--redstone); }
.shorts-eyebrow::before { background: var(--redstone); box-shadow: 0 0 10px var(--redstone); }
.shorts-title { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 800; margin-top: .3rem; }
.shorts-channel-link { font-size: .85rem; font-weight: 700; color: var(--cyan); white-space: nowrap; padding: 9px 16px; border: 1px solid var(--cyan); border-radius: 999px; transition: background .2s, color .2s; }
.shorts-channel-link:hover { background: var(--cyan); color: #0E1015; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 12px; font-size: .85rem; }
.footer-legal a { opacity: .75; text-decoration: none; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }
.shorts-track { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x mandatory; }
.short-card {
  scroll-snap-align: start; flex: 0 0 150px; aspect-ratio: 9/16;
  border-radius: 14px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #1c1030, #3a0a12);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), border-color .3s;
}
.short-card:hover { transform: translateY(-4px); border-color: var(--redstone); }
.short-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 30% 0%, rgba(226,36,42,.35), transparent 60%);
}
.short-card-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center;
}
.short-card-play::after {
  content: ""; width: 0; height: 0;
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #14161c;
  margin-left: 3px;
}
.short-card-badge {
  position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: .25rem;
  font-family: var(--font-display); font-size: .55rem; letter-spacing: .04em;
  padding: .15rem .4rem; border-radius: 4px; background: rgba(0,0,0,.55); color: #fff;
}
.short-card-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .6rem .6rem;
  font-size: .74rem; font-weight: 700; color: #fff; line-height: 1.3;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
}

/* Reproductor embebido */
.player-modal {
  position: fixed; inset: 0; z-index: 260;
  display: flex; align-items: center; justify-content: center; padding: var(--gutter);
}
.player-modal[hidden] { display: none; }
.player-modal-panel {
  position: relative; width: 100%; max-width: 900px;
  background: #000; border-radius: var(--radius); overflow: hidden;
  animation: modalIn .3s var(--ease-out);
}
.player-modal-panel[data-shape="portrait"] { max-width: 400px; }
.player-modal-frame { position: relative; width: 100%; aspect-ratio: 16/9; }
.player-modal-panel[data-shape="portrait"] .player-modal-frame { aspect-ratio: 9/16; }
.player-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,.6); border-color: rgba(255,255,255,.25); color: #fff;
}
.player-modal-close:hover { border-color: var(--cyan); color: var(--cyan); }

/* =============================================================
   9. Guides
   ============================================================= */
.accordion { display: grid; gap: .7rem; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.2rem; text-align: left; font-weight: 700;
}
.acc-trigger .lvl { font-family: var(--font-display); font-size: .62rem; letter-spacing: .1em; color: var(--cyan); text-transform: uppercase; margin-right: .6rem; }
.acc-icon { flex-shrink: 0; transition: transform .35s var(--ease-out); }
.acc-item.is-open .acc-icon { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.acc-panel-inner { padding: 0 1.2rem 1.2rem; color: var(--muted); font-size: .92rem; }

/* =============================================================
   10. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; background: var(--bg-alt); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand p { color: var(--muted); font-size: .88rem; margin-top: .8rem; max-width: 44ch; }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); }
.footer-cols h3, .footer-cols h4 { font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .8rem; }
.footer-cols a { display: block; font-size: .88rem; padding-block: .3rem; color: var(--white); }
.footer-cols a:hover { color: var(--cyan); }
.newsletter { display: flex; gap: .5rem; margin-top: .8rem; }
.newsletter input { flex: 1; padding: .65rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-card); color: var(--white); font-size: .85rem; }
.disclaimer { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); line-height: 1.7; }

@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.2fr 2fr; }
}

/* =============================================================
   11b. Scroll-jumping avatar
   ============================================================= */
.pulse-avatar {
  position: fixed;
  top: 0; left: 0;
  width: clamp(56px, 9vw, 108px);
  height: auto;
  z-index: 45;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,.45));
  transform: translate3d(0,0,0);
}
.pulse-avatar-shadow {
  position: fixed;
  top: 0; left: 0;
  width: clamp(30px, 5vw, 56px);
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent 75%);
  z-index: 44;
  pointer-events: none;
  will-change: transform, opacity;
}
@media (max-width: 380px) {
  .pulse-avatar, .pulse-avatar-shadow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-avatar, .pulse-avatar-shadow { display: none; }
}

/* =============================================================
   11. Reveal / scroll effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   12. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-block { animation: none; }
  .live-dot::before { animation: none; }
}

/* --- Botón y modal de contacto --- */
.contact-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(120deg, var(--cyan), var(--purple)); color: #04121a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,240,255,.55);
  transition: transform .2s;
}
.contact-fab:hover { transform: translateY(-2px) scale(1.04); }
.contact-panel { max-width: 420px; }
.contact-field { display: block; margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.contact-field span { display: block; margin-bottom: 6px; font-weight: 600; color: inherit; }
.contact-field input, .contact-field textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border, rgba(255,255,255,.15));
  background: rgba(255,255,255,.04); color: inherit; font: inherit; resize: vertical;
}
.contact-field input:focus, .contact-field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.contact-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.contact-submit { width: 100%; margin-top: 4px; border: none; cursor: pointer; padding: 11px 16px; border-radius: 999px; font-weight: 700; }
.contact-submit:disabled { opacity: .6; cursor: default; }
.contact-status { min-height: 1.2em; margin: 10px 0 0; font-size: .88rem; }
.contact-status[data-state="ok"] { color: #35e08a; }
.contact-status[data-state="error"] { color: #ff6b6b; }

/* --- Aviso de cookies --- */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  max-width: 640px; margin: 0 auto; padding: 16px 18px;
  background: rgba(14,16,21,.97); border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  display: flex; flex-direction: column; gap: 12px;
}
.cookie-banner p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.6; }
.cookie-banner p a { color: var(--cyan); }
.cookie-banner-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-banner-actions .btn { padding: 8px 18px; border-radius: 999px; font-size: .86rem; cursor: pointer; }
@media (prefers-color-scheme: light) {
  .cookie-banner { background: rgba(255,255,255,.98); }
}
