[hidden] { display: none !important; }
/* ErTioCrow · El Chalet Tóxico */
:root {
  --bg: #0a0c0b;
  --bg-2: #0f1311;
  --surface: #141917;
  --surface-2: #1a201d;
  --border: #242c28;
  --border-2: #313b36;
  --text: #e9f0eb;
  --muted: #9aa8a0;
  --faint: #6c7a72;
  --accent: #b8f53d;          /* verde neón del logo */
  --accent-ink: #0d1404;
  --accent-soft: rgba(184, 245, 61, .12);
  --hot: #ff6b6b;             /* coral del Chalet */
  --live: #ff3d47;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --wrap: 1240px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 600 .78rem/1 var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text);
  font: 600 .95rem/1 var(--font); cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 10px 30px -10px rgba(184, 245, 61, .55); }
.btn-primary:hover { background: #c9ff5c; border-color: #c9ff5c; }
.btn-hot { background: var(--hot); border-color: var(--hot); color: #1a0606; }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-steam { background: #1b2838; border-color: #2a475e; color: #c7d5e0; }
.btn-yt { background: #ff0033; border-color: #ff0033; color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); text-decoration: none !important;
}
a.chip:hover { color: var(--text); border-color: var(--border-2); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 12, 11, .78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(184, 245, 61, .45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 700 1.1rem var(--font-display); }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; text-decoration: none; transition: color .15s, background .15s; }
.main-nav ul a:hover { color: var(--text); background: var(--surface-2); }
.main-nav ul a[aria-current] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-social { display: flex; gap: 2px; }
.nav-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 1.05rem; }
.nav-social a:hover { color: var(--accent); background: var(--surface-2); text-decoration: none; }
.onair {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid var(--border-2); color: var(--muted); font: 700 .75rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important;
}
.onair .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.onair.live { color: #fff; border-color: var(--live); background: rgba(255, 61, 71, .14); box-shadow: 0 0 22px -4px rgba(255, 61, 71, .7); }
.onair.live .dot { background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 71, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 61, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 71, 0); } }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-2); background: var(--surface); border-radius: 12px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .onair { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 24px;
    background: rgba(10, 12, 11, .97); border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s; margin: 0;
  }
  .menu-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-social { justify-content: center; gap: 8px; }
  .nav-social a { width: 46px; height: 46px; background: var(--surface); }
}
@media (max-width: 420px) { .brand-text small { display: none; } .onair-label { display: none; } .onair { padding: 0 11px; } }

/* ---------- Hero de inicio ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-bg { position: absolute; inset: -30px; z-index: -2; background: url('/assets/img/hero.webp') center 40% / cover no-repeat; opacity: .35; filter: blur(14px) saturate(1.2); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 80% at 15% 40%, rgba(184, 245, 61, .14), transparent 60%),
  linear-gradient(90deg, rgba(10, 12, 11, .95) 0%, rgba(10, 12, 11, .7) 45%, rgba(10, 12, 11, .35) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: clamp(56px, 9vw, 120px) 20px clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: .15em; }
.hero h1 .glow { color: var(--accent); text-shadow: 0 0 30px rgba(184, 245, 61, .45); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #cfd9d2; max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { display: flex; justify-content: center; }
.hero-logo { width: min(340px, 70vw); filter: drop-shadow(0 0 40px rgba(184, 245, 61, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.live-player { display: none; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--live); box-shadow: 0 0 60px -15px rgba(255, 61, 71, .6); background: #000; }
.live-player iframe { width: 100%; height: 100%; border: 0; }
.is-live .live-player { display: block; }
.is-live .hero-logo { display: none; }
.live-badge { display: none; }
.is-live .live-badge { display: inline-flex; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { order: -1; }
  .hero-logo { width: 150px; }
  .is-live .hero-side { order: 0; }
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: -1px; }
.stat { background: var(--bg-2); padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
.stat i { font-size: 1.4rem; color: var(--accent); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); flex-shrink: 0; }
.stat strong { display: block; font: 700 1.5rem/1.1 var(--font-display); }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Carrusel horizontal ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 19vw, 210px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); cursor: pointer; }
.rail-nav button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Tarjeta de juego ---------- */
.game-card { position: relative; display: block; color: var(--text); text-decoration: none !important; border-radius: var(--radius); }
.game-card .cover { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .25s, box-shadow .25s, border-color .25s; }
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game-card .cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, transparent 45%); opacity: 0; transition: opacity .25s; }
.game-card .card-tags { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.game-card .card-tags span { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: rgba(10, 12, 11, .8); border: 1px solid rgba(255, 255, 255, .14); color: #dfe7e2; }
.game-card:hover .cover, .game-card:focus-visible .cover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px -18px rgba(184, 245, 61, .45); }
.game-card:hover .cover img { transform: scale(1.04); }
.game-card:hover .cover::after, .game-card:hover .card-tags { opacity: 1; transform: none; }
.game-card h3 { font: 600 .95rem/1.3 var(--font); margin: 10px 2px 0; }
.game-card .no-cover { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font: 700 1.1rem var(--font-display); color: var(--muted); }
@media (hover: none) { .game-card .card-tags { display: none; } }

/* ---------- Bienvenida ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.welcome-title h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.welcome-title h2 em { font-style: normal; color: var(--hot); }
.welcome-body { font-size: 1.06rem; color: #cfd9d2; }
.welcome-body strong { color: var(--text); }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; } }

/* ---------- Banner CROWTY ---------- */
.promo { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 22px; border: 1px solid rgba(255, 196, 61, .35);
  background: radial-gradient(80% 140% at 100% 0%, rgba(255, 196, 61, .22), transparent 60%), linear-gradient(135deg, #1c1608, #121009 60%, #0f1311); }
.promo h2 { margin-bottom: .25em; }
.promo p { color: #d8d0bb; margin: 0; max-width: 40em; }
.promo .trophy { position: absolute; right: -20px; bottom: -40px; font-size: 220px; color: rgba(255, 196, 61, .07); pointer-events: none; }
.promo .eyebrow { color: #ffc43d; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } }

/* ---------- Biblioteca ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 24px; border-bottom: 1px solid var(--border); background: radial-gradient(60% 120% at 0% 0%, rgba(184, 245, 61, .08), transparent 60%); }
.page-hero h1 { margin-bottom: .2em; }
.page-hero p { color: var(--muted); max-width: 46em; margin: 0; font-size: 1.05rem; }
.lib-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 28px 0 80px; align-items: start; }
.lib-toolbar { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 10px; align-items: center; padding: 12px 0; background: linear-gradient(var(--bg) 75%, transparent); flex-wrap: wrap; }
.search { position: relative; flex: 1 1 260px; }
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input, .select, .field input, .field textarea, .field select {
  width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: 500 .95rem var(--font);
}
.search input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.select { width: auto; padding: 0 38px 0 16px; appearance: none; cursor: pointer; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239aa8a0' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.filters-toggle { display: none; }
.lib-sidebar { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); }
.lib-sidebar header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.lib-sidebar header h2 { font-size: 1rem; margin: 0; }
.lib-sidebar .tag-filter { margin: 0 16px 10px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; }
.tag-list { overflow: auto; padding: 0 8px 12px; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.tag-option { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; font-size: .92rem; color: #cdd7d0; user-select: none; }
.tag-option:hover { background: var(--surface-2); }
.tag-option input { position: absolute; opacity: 0; pointer-events: none; }
.tag-option .box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--border-2); display: grid; place-items: center; flex-shrink: 0; transition: background .15s, border-color .15s; }
.tag-option .box::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.tag-option input:checked + .box { background: var(--accent); border-color: var(--accent); }
.tag-option input:checked + .box::after { opacity: 1; }
.tag-option input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.tag-option .count { margin-left: auto; color: var(--faint); font-size: .8rem; font-variant-numeric: tabular-nums; }
.tag-option.is-empty { opacity: .35; }
.link-btn { background: none; border: 0; color: var(--accent); font: 600 .85rem var(--font); cursor: pointer; padding: 4px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.active-filters:empty { display: none; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); font: 600 .82rem var(--font); cursor: pointer; }
.lib-count { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 18px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--border-2); border-radius: var(--radius); }
.empty i { font-size: 2rem; color: var(--faint); margin-bottom: 12px; display: block; }
.load-more { display: flex; justify-content: center; margin-top: 36px; }
.sheet-backdrop { display: none; }
@media (max-width: 960px) {
  .lib-layout { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; }
  .lib-sidebar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; top: auto; max-height: 78vh; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -20px 50px rgba(0, 0, 0, .6); }
  .filters-open .lib-sidebar { transform: none; }
  .filters-open .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6); }
  .lib-sidebar header { padding-top: 22px; position: relative; }
  .lib-sidebar header::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--border-2); }
  .sheet-done { display: block !important; margin: 0 16px 16px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 14px; }
}
.sheet-done { display: none; }
@media (max-width: 400px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Ficha de juego ---------- */
.game-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--border); }
.game-hero-bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(40px) saturate(1.3); opacity: .45; transform: scale(1.1); }
.game-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 12, 11, .55) 60%, rgba(10, 12, 11, .75) 100%); }
.game-hero-inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: end; padding: 40px 20px 44px; }
.game-hero .cover { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow); aspect-ratio: 3 / 4; background: var(--surface); }
.game-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.game-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rating { display: inline-flex; align-items: baseline; gap: 4px; font: 700 1.6rem var(--font-display); color: var(--accent); margin-bottom: 10px; }
.rating small { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) {
  .game-hero-inner { grid-template-columns: 1fr; align-items: start; padding-top: 24px; }
  .game-hero .cover { width: 190px; }
}
.game-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 48px 20px 80px; }
@media (max-width: 960px) { .game-body { grid-template-columns: 1fr; } }
.prose { font-size: 1.06rem; color: #d3ddd6; max-width: 70ch; }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.6em; }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text); font-size: 1.12rem; }
.prose img { border-radius: 12px; margin: 1.2em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.trailer { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000 center / cover no-repeat; border: 1px solid var(--border); cursor: pointer; margin-bottom: 32px; }
.trailer::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); transition: background .2s; }
.trailer:hover::before { background: rgba(0, 0, 0, .15); }
.trailer .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 16px; background: #ff0033; display: grid; place-items: center; color: #fff; font-size: 1.5rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); border: 0; cursor: pointer; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 8px 0 32px; }
.shots a { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.shots a:hover img { transform: scale(1.05); }
.aside-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.aside-card h2 { font-size: 1.05rem; margin-bottom: 14px; }
.mini-list { display: grid; gap: 10px; }
.mini-game { display: flex; gap: 12px; align-items: center; color: var(--text); padding: 6px; border-radius: 10px; text-decoration: none !important; }
.mini-game:hover { background: var(--surface-2); }
.mini-game img, .mini-game .ph { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--surface-2); }
.mini-game span { font-weight: 500; font-size: .92rem; line-height: 1.3; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 10px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.2rem; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

/* ---------- CROWTYs ---------- */
.crowty-hero { padding: clamp(48px, 7vw, 88px) 0 32px; text-align: center; background: radial-gradient(50% 90% at 50% 0%, rgba(255, 196, 61, .16), transparent 70%); border-bottom: 1px solid var(--border); }
.crowty-hero .eyebrow { color: #ffc43d; }
.crowty-hero h1 span { color: #ffc43d; }
.crowty-hero p { color: var(--muted); max-width: 40em; margin: 0 auto; }
.crowty-intro { max-width: 860px; margin: 40px auto 0; }
.notice { max-width: 640px; margin: 48px auto; text-align: center; padding: 36px 28px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; }
.notice i { font-size: 2.2rem; color: #ffc43d; margin-bottom: 14px; display: block; }
.notice h2 { font-size: 1.5rem; }
.notice p { color: var(--muted); }
.poll { max-width: 980px; margin: 40px auto 80px; }
.poll-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.progress { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-bottom: 28px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffc43d, var(--accent)); transition: width .35s ease; }
.poll-cat h2 { text-align: center; font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 6px; }
.poll-cat .hint { text-align: center; color: var(--muted); margin-bottom: 26px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.option { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; overflow: hidden; font: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.option:hover { transform: translateY(-3px); border-color: var(--border-2); }
.option .ocover { aspect-ratio: 3 / 4; background: var(--surface-2) center / cover no-repeat; }
.option .oname { padding: 12px 14px 14px; font-weight: 600; line-height: 1.3; }
.option.selected { border-color: #ffc43d; box-shadow: 0 0 0 4px rgba(255, 196, 61, .2), 0 18px 40px -16px rgba(255, 196, 61, .5); }
.option.selected::after { content: '\f00c'; font: 900 1rem 'Font Awesome 6 Free'; position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: #ffc43d; color: #1a1300; display: grid; place-items: center; }
.option:disabled { cursor: wait; }
.poll-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.poll-dots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.poll-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--border-2); cursor: pointer; padding: 0; }
.poll-dots button.voted { background: var(--accent); }
.poll-dots button.skipped { background: var(--faint); }
.poll-dots button.current { outline: 2px solid #ffc43d; outline-offset: 2px; }
.summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 24px 0; }
.summary button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.summary button:hover { border-color: var(--border-2); }
.summary .sthumb { width: 44px; height: 58px; border-radius: 8px; background: var(--surface-2) center / cover; flex-shrink: 0; }
.summary small { display: block; color: var(--muted); font-size: .78rem; }
.gate { max-width: 460px; margin: 48px auto 80px; padding: 32px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; text-align: center; }
.gate form { display: flex; gap: 10px; margin-top: 18px; }
.gate input { flex: 1; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: inherit; }
.gate .error { color: var(--hot); margin: 12px 0 0; min-height: 1.2em; }
@media (max-width: 480px) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .gate form { flex-direction: column; } }

.results { max-width: 980px; margin: 40px auto 80px; display: grid; gap: 22px; }
.result-cat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.result-cat header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.result-cat h2 { font-size: 1.3rem; margin: 0; }
.result-cat header span { color: var(--muted); font-size: .88rem; }
.winner { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 14px; margin-bottom: 14px; background: linear-gradient(90deg, rgba(255, 196, 61, .14), transparent); border: 1px solid rgba(255, 196, 61, .35); }
.winner .wcover { aspect-ratio: 3 / 4; border-radius: 10px; background: var(--surface-2) center / cover; }
.winner .wlabel { color: #ffc43d; font: 700 .75rem var(--font); letter-spacing: .12em; text-transform: uppercase; }
.winner strong { display: block; font: 700 1.35rem/1.2 var(--font-display); margin: 4px 0; }
.bar-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 90px; gap: 14px; align-items: center; padding: 6px 0; font-size: .92rem; }
.bar { height: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--faint); border-radius: 10px; }
.bar-row.first .bar span { background: #ffc43d; }
.bar-row .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .bar-row { grid-template-columns: 1fr 70px; } .bar-row .bar { grid-column: 1 / -1; grid-row: 2; } .winner { grid-template-columns: 72px 1fr; } }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); gap: 4px; margin-top: 22px; }
.tabs a { padding: 8px 18px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; text-decoration: none; }
.tabs a[aria-current] { background: #ffc43d; color: #1a1300; }

/* ---------- Página genérica ---------- */
.page-body { padding: 48px 20px 88px; }
.page-body .prose { margin: 0 auto; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { filter: drop-shadow(0 0 10px rgba(184, 245, 61, .35)); }
.footer-brand p { margin: 0; color: var(--muted); font-size: .88rem; }
.footer-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--muted); font-size: .92rem; }
.footer-social { display: flex; gap: 6px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--muted); }
.footer-social a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font: 700 clamp(5rem, 18vw, 9rem)/1 var(--font-display); color: var(--accent); text-shadow: 0 0 40px rgba(184, 245, 61, .35); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
