/* Escena del juego (ilustración) */
.game { background: #1a2238; }
.game::after { display: none; }
.game .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-label { background: rgba(9, 11, 19, 0.6); padding: 3px 8px; border-radius: 6px; }
a.chip { text-decoration: none; }
a.chip:hover { background: rgba(245, 184, 61, 0.2); }

/* Página de precios */
.page-head { padding: 64px 0 28px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: -40% 0 auto 0; height: 100%; background: radial-gradient(600px 300px at 20% 10%, rgba(124, 92, 255, 0.25), transparent 70%); pointer-events: none; }
.page-head .wrap { position: relative; }
.demo-banner { display: flex; gap: 10px; align-items: center; background: rgba(245, 184, 61, 0.1); border: 1px solid rgba(245, 184, 61, 0.35); color: #f7d98b; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 18px 0 0; max-width: 720px; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.search { flex: 1 1 280px; position: relative; }
.search input, .select { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; padding: 0 16px; }
.search input { padding-left: 44px; }
.search svg { position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; color: var(--muted); }
.search input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25); }
.select { width: 220px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fchip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.fchip[aria-pressed="true"] { background: rgba(124, 92, 255, 0.18); border-color: rgba(124, 92, 255, 0.6); color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 18px; font-size: 15px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); font-weight: 700; }
tbody tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.name { font-weight: 700; }
td.name small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.price-v { color: var(--gold); font-weight: 800; }
.delta { font-weight: 700; font-size: 13px; }
.delta.up { color: var(--ok); }
.delta.down { color: #f87171; }
.trend { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.trend svg { width: 84px; height: 26px; }
.conf { display: inline-flex; gap: 3px; vertical-align: middle; }
.conf i { width: 5px; height: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); }
.conf i.on { background: var(--ok); }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.roadmap { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; } .select { width: 100%; } }

@media (max-width: 620px) {
  .game { height: auto; aspect-ratio: 600 / 380; }
  .overlay { width: 270px; right: 8px; top: 8px; transform: scale(0.62); transform-origin: top right; }
  .game-label { font-size: 10px; left: 8px; bottom: 6px; }
}
.demo-banner { display: block; line-height: 1.5; }

/* Tema Spiritia: dragón elemental multicolor */
:root { --fire: #ff5a4d; --earth: #f5b83d; --air: #34d399; --water: #3d8bff; --spirit: #7c5cff; }
.logo-img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 24px rgba(124, 92, 255, 0.45); }
h1 em { background: linear-gradient(90deg, #ff7a59, #f5b83d 30%, #34d399 60%, #3d8bff 85%, #7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tail { position: absolute; left: 0; right: 0; bottom: -12px; height: 320px; background: url(spiritia-tail.svg) right bottom / cover no-repeat; opacity: 0.5; pointer-events: none; z-index: 0; }
.tail-sm { height: 180px; opacity: 0.4; }
.hero .wrap, .page-head .wrap, .final .box > *:not(.tail) { position: relative; z-index: 1; }
.final .box { position: relative; overflow: hidden; }
.page-head .tail-sm { top: auto; bottom: -30px; }
.grid-3 > .card:nth-child(4n+1) .icon { color: #ffa399; background: rgba(255, 90, 77, 0.14); border-color: rgba(255, 90, 77, 0.35); }
.grid-3 > .card:nth-child(4n+2) .icon { color: #9fc4ff; background: rgba(61, 139, 255, 0.14); border-color: rgba(61, 139, 255, 0.35); }
.grid-3 > .card:nth-child(4n+3) .icon { color: #8ae8c4; background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.35); }
.grid-3 > .card:nth-child(4n+4) .icon { color: #f7d98b; background: rgba(245, 184, 61, 0.14); border-color: rgba(245, 184, 61, 0.35); }
.step::before { background: conic-gradient(from 200deg, var(--fire), var(--earth), var(--air), var(--water), var(--spirit), var(--fire)); }
.eyebrow i { background: var(--air); }
@media (max-width: 620px) { .tail { height: 220px; opacity: 0.4; } }
@media (max-width: 620px) { .tail { height: 150px; background-size: 100% auto; opacity: 0.6; bottom: 0; } .tail-sm { height: 110px; } }

/* Cola grande bajo la portada */
.tail-band { display: block; width: 100%; max-width: 1600px; margin: -36px 0 -8px auto; pointer-events: none; user-select: none; position: relative; z-index: 0; }
.hero { padding-bottom: 40px !important; }
/* Captura real difuminada (si existe web/img/juego.jpg) */
.game .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) saturate(1.05); transform: scale(1.04); }
.game .shot ~ .scene { visibility: hidden; }
.game .shot ~ .game-label { display: none; }
