:root {
	--bg: #0b0614; --bg2: #110920; --panel: #170e2b; --panel2: #1f1438; --line: #2c1f4d;
	--text: #f4efff; --muted: #9d90c4; --dim: #6c5f94;
	--v1: #6d28d9; --v2: #9333ea; --v3: #c026d3; --glow: #a855f7;
	--acid: #c6ff3d; --hot: #ff3d81; --cyan: #3de0ff;
	--grad: linear-gradient(120deg, #7c3aed, #a855f7 45%, #d946ef);
	--r: 14px;
	--display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
	--body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
/* Self-hosted latin subsets (Unbounded and Manrope are variable fonts): no third-party blocking request */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/unbounded.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/manrope.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
* { box-sizing: border-box }
html { -webkit-tap-highlight-color: transparent; scrollbar-color: var(--line) transparent }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.45 var(--body); overflow-x: hidden }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none }
img { display: block }

/* Living background: halos morados, grano y un foco que sigue al cursor */
.fx { position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(600px circle at var(--mx, 70%) var(--my, 10%), rgba(168, 85, 247, .13), transparent 60%),
		radial-gradient(900px 500px at 0% 0%, rgba(109, 40, 217, .35), transparent 60%),
		radial-gradient(800px 600px at 100% 30%, rgba(192, 38, 211, .16), transparent 60%),
		var(--bg) }
.fx::after { content: ''; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") }

/* Cabecera */
header { position: sticky; top: 0; z-index: 30; height: 66px; display: flex; align-items: center; gap: 18px; padding: 0 22px;
	background: rgba(11, 6, 20, .72); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(168, 85, 247, .14) }
.logo { display: flex; align-items: center; gap: 10px; font: 800 18px/1 var(--display); letter-spacing: -.5px; white-space: nowrap; position: relative }
.logo img { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(168, 85, 247, .7)) }
.logo .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent }
.logo .word { display: inline-block }
.logo:hover .word { animation: glitch .35s steps(2) 2 }
@keyframes glitch {
	0% { text-shadow: 2px 0 var(--hot), -2px 0 var(--cyan); transform: translate(1px, 0) }
	50% { text-shadow: -2px 0 var(--hot), 2px 0 var(--cyan); transform: translate(-1px, 1px) }
	100% { text-shadow: none; transform: none }
}
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s }
.search:focus-within { border-color: var(--glow); box-shadow: 0 0 0 4px rgba(168, 85, 247, .18) }
.sico { width: 18px; height: 18px; flex: none; background: var(--dim); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat }
.search input { all: unset; flex: 1; min-width: 0; font-weight: 600 }
.search input::placeholder { color: var(--dim) }
.search kbd { font: 700 11px var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px }
.hright { margin-left: auto; display: flex; align-items: center; gap: 10px }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 800; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s }
.btn:active { transform: scale(.96) }
.btn.ghost { background: var(--panel); border: 1px solid var(--line) }
.btn.ghost:hover { border-color: var(--glow); background: var(--panel2) }
.btn.prime { background: var(--grad); box-shadow: 0 6px 24px -6px rgba(168, 85, 247, .8), inset 0 1px 0 rgba(255, 255, 255, .25) }
.btn.prime:hover { box-shadow: 0 8px 34px -4px rgba(192, 38, 211, .9), inset 0 1px 0 rgba(255, 255, 255, .3) }
.btn.sq { width: 42px; padding: 0; justify-content: center }
.btn svg { width: 18px; height: 18px; flex: none }
.spin svg { animation: spin .6s cubic-bezier(.3, 1.4, .5, 1) }
@keyframes spin { to { transform: rotate(540deg) } }

/* Estructura */
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 66px) }
.side { position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto; padding: 18px 12px; border-right: 1px solid rgba(168, 85, 247, .1); scrollbar-width: none }
.side h4 { margin: 18px 12px 8px; font: 700 11px var(--body); letter-spacing: 1.6px; color: var(--dim); text-transform: uppercase }
.side h4:first-child { margin-top: 0 }
.nav { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; width: 100%; text-align: left; transition: background .15s, color .15s }
.nav:hover { background: var(--panel); color: var(--text) }
.nav.on { background: linear-gradient(90deg, rgba(147, 51, 234, .35), rgba(147, 51, 234, .05)); color: var(--text); box-shadow: inset 3px 0 0 var(--glow) }
.nav .ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--panel2); font-size: 15px; flex: none }
.ico svg { width: 18px; height: 18px; flex: none }
.nav.on .ico { background: var(--grad) }
.nav .n { margin-left: auto; font-size: 11px; color: var(--dim) }
main { padding: 22px 28px 40px; min-width: 0 }

/* Portada: carrusel */
.hero { position: relative; height: 380px; border-radius: 22px; overflow: hidden; margin-bottom: 34px; isolation: isolate; border: 1px solid rgba(168, 85, 247, .25) }
.hero .bgimg { position: absolute; inset: -40px; background: center/cover; filter: blur(34px) saturate(1.5) brightness(.55); transform: scale(1.1); z-index: -2 }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 6, 20, .95) 0%, rgba(30, 12, 60, .75) 45%, rgba(109, 40, 217, .15) 100%) }
.hero .in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); height: 100%; align-items: center; gap: 30px; padding: 0 40px }
.kick { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--body); letter-spacing: 1.8px; text-transform: uppercase; color: var(--acid) }
.kick::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); animation: pulse 1.4s infinite }
@keyframes pulse { 50% { opacity: .35 } }
.hero h1 { font: 800 clamp(26px, 3.4vw, 46px)/1.04 var(--display); letter-spacing: -1.5px; margin: 14px 0 12px; text-wrap: balance }
.hero p { margin: 0 0 22px; color: #d6ccf2; max-width: 460px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.hero .acts { display: flex; gap: 10px }
.hero .acts .btn { height: 50px; padding: 0 26px; font-size: 16px }
.hero .acts .btn.sq { width: 50px; padding: 0 }
.hero .shot { position: relative; justify-self: end; width: min(100%, 520px); aspect-ratio: 512 / 340; border-radius: 18px; overflow: hidden; transform: perspective(900px) rotateY(-12deg) rotateX(4deg); box-shadow: 0 30px 80px -20px rgba(168, 85, 247, .8), 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .5s }
.hero:hover .shot { transform: perspective(900px) rotateY(-4deg) rotateX(1deg) scale(1.02) }
.hero .shot img { width: 100%; height: 100%; object-fit: cover }
.hero .shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); transform: translateX(-100%); animation: shine 4s infinite }
@keyframes shine { 30%, 100% { transform: translateX(100%) } }
.dots { position: absolute; left: 40px; bottom: 22px; display: flex; gap: 8px }
.dots button { width: 44px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; padding: 0 }
.dots button i { display: block; height: 100%; width: 0; background: var(--acid) }
.dots button.on i { animation: fill 6s linear forwards }
@keyframes fill { to { width: 100% } }

/* Secciones */
section { margin-bottom: 38px }
.sh { display: flex; align-items: center; gap: 12px; margin-bottom: 16px }
.sh h2 { margin: 0; font: 800 20px var(--display); letter-spacing: -.6px }
.sh h2 .ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--panel2); vertical-align: -9px; margin-right: 4px; color: var(--glow) }
.sh h2 .ico svg { width: 17px; height: 17px }
.sh .tag { font: 800 10px var(--body); letter-spacing: 1.4px; padding: 4px 8px; border-radius: 6px; text-transform: uppercase }
.sh .arrows { margin-left: auto; display: flex; gap: 6px }
.sh .arrows .btn { height: 34px; width: 34px; padding: 0; justify-content: center; font-size: 20px }

/* Fichas de juego con inclinación 3D */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); grid-auto-rows: 136px; grid-auto-flow: dense; gap: 14px }
.tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--panel); cursor: pointer;
	transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--ty, 0));
	transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) }
.tile:hover { --ty: -4px; box-shadow: 0 0 0 2px var(--glow), 0 18px 40px -10px rgba(168, 85, 247, .75); z-index: 2 }
.tile.big { grid-column: span 2; grid-row: span 2 }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .3s }
.tile:hover img { transform: scale(1.08); filter: saturate(1.2) }
.tile video.pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; pointer-events: none }
.tile.previewing video.pv { opacity: 1 }
.tile.previewing:hover .play { opacity: 0 }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 6, 20, .92)); opacity: .9; transition: opacity .25s }
.tile .info { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; transform: translateY(4px); transition: transform .25s }
.tile:hover .info { transform: none }
.tile .t { display: block; font-weight: 800; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 8px rgba(0, 0, 0, .6) }
.tile .stars { display: block; font-size: 11px; font-weight: 800; color: #ffcc4d; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); letter-spacing: .5px }
.tile.big .t { font: 800 22px/1.1 var(--display); letter-spacing: -.5px; white-space: normal }
.tile .c { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; opacity: 0; max-height: 0; transition: opacity .2s }
.tile:hover .c, .tile.big .c { opacity: 1; max-height: 20px; margin-top: 2px }
.tile .play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 30px rgba(192, 38, 211, .8); transform: scale(.4); opacity: 0; transition: all .25s cubic-bezier(.3, 1.5, .5, 1) }
.tile:hover .play { transform: scale(1); opacity: 1 }
.tile .play::before { content: ''; width: 20px; height: 20px; margin-left: 3px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4v16l13-8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4v16l13-8z'/%3E%3C/svg%3E") center/contain no-repeat }
.tile .badge { position: absolute; z-index: 1; top: 10px; left: 10px; font: 800 10px var(--body); letter-spacing: 1px; padding: 4px 8px; border-radius: 6px; text-transform: uppercase }
.b-hot { background: var(--hot); color: #fff; box-shadow: 0 0 16px rgba(255, 61, 129, .6) }
.b-new { background: var(--acid); color: #12051f; box-shadow: 0 0 16px rgba(198, 255, 61, .5) }
.b-top { background: var(--grad); color: #fff }
.tile .fav { position: absolute; z-index: 1; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 9px; background: rgba(11, 6, 20, .6); backdrop-filter: blur(6px); display: grid; place-items: center; opacity: 0; transition: opacity .2s, transform .15s }
.tile:hover .fav, .tile .fav.on { opacity: 1 }
.tile .vid { position: absolute; z-index: 2; top: 8px; left: 8px; width: 32px; height: 32px; border-radius: 9px; background: rgba(11, 6, 20, .6); backdrop-filter: blur(6px); display: grid; place-items: center; opacity: 0; transition: opacity .2s, transform .15s }
.tile .vid::before { content: ''; width: 18px; height: 18px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='3'/%3E%3Cpath d='M10 9v6l5-3z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='3'/%3E%3Cpath d='M10 9v6l5-3z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat }
.tile .vid:hover { transform: scale(1.1); background: var(--grad) }
.tile:hover .vid { opacity: 1 }
.tile:hover .vid + .badge { opacity: 0 } /* the film button takes the badge's corner while the pointer is on the tile */
.tile .fav::before { content: ''; width: 16px; height: 16px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M12 21s-8-5-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 6-8 11-8 11z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M12 21s-8-5-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 6-8 11-8 11z'/%3E%3C/svg%3E") center/contain no-repeat }
.tile .fav.on::before { background: var(--hot); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2.2'%3E%3Cpath d='M12 21s-8-5-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 6-8 11-8 11z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2.2'%3E%3Cpath d='M12 21s-8-5-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 6-8 11-8 11z'/%3E%3C/svg%3E") }
.fav.on svg { fill: var(--hot); stroke: var(--hot) }
.fav:active { transform: scale(.8) }

.row { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 14px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 6px 4px 14px; margin: -6px -4px 0; scrollbar-width: none }
.row .tile { height: 140px; scroll-snap-align: start }

.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted) }
.cat-hit { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-weight: 800; transition: border-color .15s, background .15s }
.cat-hit:hover { border-color: var(--glow); background: var(--panel2) }
.cat-hit .arr { margin-left: auto; color: var(--muted) }
.empty b { display: block; font: 800 22px var(--display); color: var(--text); margin-bottom: 6px }
.skel { background: linear-gradient(90deg, var(--panel), var(--panel2), var(--panel)); background-size: 200% 100%; animation: sk 1.1s infinite }
@keyframes sk { to { background-position: -200% 0 } }




@media (max-width: 1100px) {
	.shell { grid-template-columns: 76px minmax(0, 1fr) }
	.side h4, .side .nav .l, .side .nav .n { display: none }
	.side .nav { justify-content: center; padding: 8px }
	.gwrap { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 760px) {
	header { padding: 10px 14px; gap: 10px; height: auto; flex-wrap: wrap }
	.search { order: 3; flex-basis: 100%; max-width: none }
	.search kbd, .rand-l { display: none }
	.logo { font-size: 15px }
	.shell { grid-template-columns: minmax(0, 1fr); align-content: start } /* a short page doesn't stretch the menu row */
	.side { position: static; height: auto; display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 2px; border: 0; scrollbar-width: none }
	.side h4, .side .n { display: none }
	.side .nav { flex: none; width: auto; padding: 6px 14px 6px 6px; background: var(--panel); border: 1px solid var(--line) }
	.side .nav .l { display: inline }
	main { padding: 14px 14px 30px }
	.hero { height: auto }
	.hero .in { grid-template-columns: minmax(0, 1fr); padding: 18px 18px 46px; gap: 16px }
	.hero .shot { order: -1; justify-self: stretch; width: 100%; transform: none }
	.dots { left: 18px; bottom: 18px }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 118px; gap: 10px }
	.tile .fav, .tile .vid { opacity: 1 }
	.tile .vid + .badge, .tile:hover .vid + .badge { left: 48px; opacity: 1 } /* on touch screens both stay: the badge moves over */
	.tile .play { display: none }
	.row { grid-auto-columns: 170px }
	.row .tile { height: 112px }
	.sh .arrows { display: none }
}
/* Shared bits */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.sh .more { margin-left: auto; color: var(--muted); font-weight: 800; font-size: 13px; padding: 6px 10px; border-radius: 9px }
.sh .more:hover { color: var(--text); background: var(--panel) }
.tag.cnt { background: var(--panel2); color: var(--muted) }
.btn.big { height: 50px; padding: 0 26px; font-size: 16px }
.crumbs { color: var(--dim); font-size: 13px; font-weight: 700; margin: 2px 0 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.crumbs a { color: var(--muted) }
.crumbs a:hover { color: var(--text) }
.phead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px }
.phead h1 { margin: 0; font: 800 clamp(24px, 3vw, 34px)/1.1 var(--display); letter-spacing: -1px }
.intro { color: var(--muted); max-width: 760px; margin: 0 0 22px }
.card.about { margin: 28px 0 0 } .card.about h2 { font-size: 18px; margin: 0 0 10px } .card.about p { color: var(--muted); max-width: 820px; margin: 0 0 12px } .card.about p:last-child { margin: 0 }
.played { color: var(--muted); font-weight: 700; font-size: 13px; margin: 14px 0 0 }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 30px 0 10px }
.pager .btn { min-width: 42px; justify-content: center; padding: 0 12px }
.pager .gap { align-self: center; color: var(--dim) }
.about { color: var(--muted); max-width: 820px }
.about h2 { font: 800 18px var(--display); color: var(--text); margin: 0 0 8px }
.foot { border-top: 1px solid rgba(168, 85, 247, .12); margin-top: 20px; padding: 26px 0 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 13px }
.foot b { color: var(--text) }
.foot .fl { display: flex; gap: 16px; flex-wrap: wrap }
.foot .fl a:hover { color: var(--text) }
.foot .legal { flex-basis: 100%; margin: 6px 0 0; font-size: 12px }

/* Game page */
.gwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start }
.stage { position: relative; width: 100%; max-height: 78vh; aspect-ratio: var(--ar, 1.333); margin: 0 auto; border-radius: 18px; overflow: hidden; background: #000; isolation: isolate;
	box-shadow: 0 0 0 1px rgba(168, 85, 247, .4), 0 30px 90px -20px rgba(147, 51, 234, .75) }
.stage .poster { position: absolute; inset: -40px; background: center/cover; filter: blur(30px) saturate(1.5) brightness(.5); z-index: -1 }
.stage iframe { position: absolute; inset: 0; width: 100%; height: calc(100% - var(--nudge, 0px)); border: 0 }
.launch { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; width: 100%; cursor: pointer }
.launch img { width: 150px; height: 150px; border-radius: 26px; object-fit: cover; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7), 0 0 0 3px rgba(255, 255, 255, .15); transition: transform .3s }
.launch:hover img { transform: scale(1.06) rotate(-2deg) }
.launch .btn { min-width: 210px; justify-content: center }
.launch .btn + .btn { margin-top: -8px }
.launch .vguide { background: rgba(10, 6, 20, .55); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px) }
.launch .vguide:hover { border-color: var(--glow); background: rgba(23, 14, 43, .85) }
.stage.on .launch, .stage.on .poster { display: none }
.stage:fullscreen { border-radius: 0; max-height: none }
/* Phones without element fullscreen (iPhone) get the stage stretched over the page instead */
.stage.max { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100dvh; max-height: none; aspect-ratio: auto; border-radius: 0; box-shadow: none }
html.maxed, html.maxed body { overflow: hidden }
.stage .exit { display: none; position: absolute; z-index: 3; top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); width: 36px; height: 36px; border-radius: 50%;
	background: rgba(0, 0, 0, .5); color: #fff; font-size: 16px; opacity: .75 }
.stage.max .exit, .stage:fullscreen .exit { display: grid; place-items: center }
/* A landscape game on a phone held upright turns sideways to fill the screen: turn the phone and play */
@media (orientation: portrait) and (pointer: coarse) {
	.stage.land.max iframe, .stage.land:fullscreen iframe { inset: auto; top: 0; left: 100%; width: 100dvh; height: calc(100vw - var(--nudge, 0px)); transform-origin: 0 0; transform: rotate(90deg) }
}
.gbar { display: flex; align-items: center; gap: 10px; margin: 18px 0 0 }
.gbar h1 { margin: 0; flex: 1; min-width: 0; font: 800 clamp(20px, 2.4vw, 28px)/1.15 var(--display); letter-spacing: -.8px }
.meta { margin: 18px 0 30px }
.rating { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 14px; padding: 12px 18px; border-radius: 14px; background: rgba(23, 14, 43, .75); border: 1px solid var(--line) }
.rating .score { display: flex; align-items: center; gap: 10px }
.rating .stars { --p: 0%; font-size: 20px; letter-spacing: 2px; background: linear-gradient(90deg, #ffc93c var(--p), rgba(255, 255, 255, .18) var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent }
.rating b { font: 800 18px var(--display) }
.rating small { color: var(--muted); font-weight: 700 }
.rating .rate { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 13px }
.pick { display: flex }
.pick button { font-size: 26px; line-height: 1; padding: 0 2px; color: rgba(255, 255, 255, .22); transition: transform .15s, color .15s }
.pick button.on, .pick:hover button { color: #ffc93c }
.pick button:hover ~ button { color: rgba(255, 255, 255, .22) }
.pick button:hover { transform: scale(1.25) }
.rating.busy { opacity: .6; pointer-events: none }
.meta p + p { margin-top: 10px }
.meta p + h2 { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line) }
/* Video guide: a 16:9 box the player fills once app.js makes it */
.card.guide { margin: 18px 0 0; scroll-margin-top: 80px }
.card.guide.lit { animation: lit 1.6s ease-out }
@keyframes lit { from { box-shadow: 0 0 0 3px var(--glow), 0 0 60px -10px var(--glow) } to { box-shadow: 0 0 0 0 transparent } }
.guide .vid { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--panel2) }
.guide .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.card { background: rgba(23, 14, 43, .75); border: 1px solid var(--line); border-radius: 16px; padding: 18px }
.card h2 { margin: 0 0 8px; font: 800 12px var(--body); letter-spacing: 1.6px; text-transform: uppercase; color: var(--glow) }
.card p { margin: 0; color: #cfc4ec }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px }
.tags span { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--panel2); border-radius: 7px; padding: 3px 9px }
.next { position: sticky; top: 84px; padding: 14px }
.next h2 { margin: 4px 6px 10px }
.next a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; transition: background .15s }
.next a:hover { background: var(--panel2) }
.next img { width: 92px; height: 62px; border-radius: 9px; object-fit: cover; flex: none }
.next b { display: block; font-size: 14px; line-height: 1.25 }
.next small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--panel2); border: 1px solid var(--glow); color: var(--text); padding: 10px 18px; border-radius: 12px; font-weight: 800; transition: all .25s; z-index: 90; pointer-events: none }
.toast.on { opacity: 1; transform: translate(-50%, 0) }

/* 404 */
.lost { text-align: center; padding: 30px 0 34px }
.lost .code { font: 800 clamp(90px, 16vw, 180px)/1 var(--display); letter-spacing: -6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(168, 85, 247, .6)) }
.lost h1 { font: 800 clamp(20px, 3vw, 30px) var(--display); margin: 8px 0 }
.lost p { color: var(--muted); margin: 0 0 20px }
.lost .acts { display: flex; gap: 10px; justify-content: center }

@media (max-width: 1100px) {
	.gwrap { grid-template-columns: minmax(0, 1fr) }
	.next { position: static }
}
@media (max-width: 760px) {
	.stage { max-height: none }
	.launch img { width: 110px; height: 110px }
	.launch { gap: 14px }
	.launch .btn { min-width: 190px; height: 46px }
	.stage.land .launch:has(.vguide) img { display: none } /* a wide game's stage is too short on a phone for both buttons and the icon */
	.gbar h1 { font-size: 19px }
	.btn.guide { width: 42px; padding: 0; justify-content: center } /* just the ▶ next to the other square buttons */
	.btn.guide span { display: none }
	.card.guide { scroll-margin-top: 130px } /* the phone's header also holds the search box */
}

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