/*
 * NOVA ARCADE — estilos
 * Estilo "La Maquinita": las maquinitas de la tiendita como juguete moderno.
 * Bordes negros gruesos, sombras duras, colores planos. (<html class="maq">)
 *   1. Base
 *   2. La Maquinita (.maq)
 *   3. Celular
 */

/* =====================================================================
   1. BASE COMPARTIDA
   ===================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body {
  font-family: var(--f); color: var(--tinta); background: var(--fondo);
  -webkit-tap-highlight-color: transparent; overflow-x: hidden; min-height: 100vh;
}
body.playing { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }

.top { max-width: 1200px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; flex-shrink: 0; }
.buscar { flex: 1; max-width: 420px; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.buscar svg { width: 20px; height: 20px; flex-shrink: 0; }
.buscar input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 16px; }
.pill { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.pill svg { width: 24px; height: 24px; }

main { max-width: 1200px; margin: 0 auto; padding: 6px 16px 40px; }
.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cab h2 { margin: 0; }
.cab .sub { margin: 4px 0 0; }
.cab .sub:empty { display: none; }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 6px 8px 2px; max-width: 100%; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex-shrink: 0; display: flex; align-items: center; gap: 7px; transition: transform .15s; }
.cat svg { width: 18px; height: 18px; }
.vacio { text-align: center; padding: 20px 16px 40px; }
.vacio svg { width: 130px; margin: 0 auto 8px; }
.vacio p { max-width: 380px; margin: 0 auto; font-size: 17px; }

.fila { margin-top: 40px; }
.carril { display: flex; gap: 14px; overflow-x: auto; padding: 6px 6px 14px 2px; scrollbar-width: none; }
.carril::-webkit-scrollbar { display: none; }
.rcard { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; text-align: left; transition: transform .15s; }
.rcard:hover { transform: translateY(-3px); }
.rcard .mini-arte { width: 54px; height: 54px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; }
.rcard .mini-arte svg { width: 82%; height: 82%; }
.rcard b { display: block; font-size: 16px; }
.rcard small { font-size: 13px; }
.rec-card { flex-shrink: 0; width: 170px; padding: 12px 14px; }
.rec-card small { display: block; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.rec-card b { display: block; font-size: 38px; line-height: 1.1; }
.rec-card span { font-size: 14px; }

.fav {
  position: absolute; z-index: 4; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.fav svg { width: 20px; height: 20px; }
.fav:active { transform: scale(1.35); }

.pie { text-align: center; padding: 30px 16px 110px; font-size: 15px; }
.pie p { margin: 4px 0; }

.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 300; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 14px; font-weight: 700; transition: .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.tabbar { display: none; }

/* ---------- Reproductor ---------- */
.player { user-select: none; -webkit-user-select: none; position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--fondo); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.pbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; height: 62px; flex-shrink: 0; }
.ib { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; padding: 0; transition: transform .12s; }
.ib:active { transform: scale(.9); }
.ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.ib .x { display: none; }
.ib.off .w { display: none; }
.ib.off .x { display: inline; }
.ptitle { flex: 1; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pscore { text-align: center; line-height: 1; min-width: 66px; padding: 6px 10px; }
.pscore small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.pscore b { display: inline-block; font-size: 21px; }
.pscore b.bump { animation: bump .25s; }
@keyframes bump { 50% { transform: scale(1.3); } }
.stage { position: relative; flex: 1; min-height: 0; }
#game-canvas { position: absolute; inset: 0; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.card { width: min(420px, 100%); max-height: 100%; overflow: auto; text-align: center; padding: 22px; animation: cardin .4s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes cardin { from { opacity: 0; transform: translateY(30px) scale(.9); } }
.card h3 { font-size: 30px; margin: 6px 0 12px; line-height: 1.05; }
.card .btn.big { width: 100%; margin-top: 6px; justify-content: center; }
.card .btns { display: flex; gap: 10px; margin-top: 12px; }
.card .btns .btn { flex: 1; justify-content: center; }
.st-art { overflow: hidden; margin: -4px -4px 8px; display: grid; place-items: center; height: min(30vh, 200px); }
.st-art svg { height: 88%; width: auto; max-width: 92%; }
.st-desc { margin: 0 0 12px; line-height: 1.4; }
.st-controls { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; text-align: left; }
.st-controls li { padding: 8px 12px 8px 32px; font-size: 15px; position: relative; }
.st-controls li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; background: var(--acento); }
.go-mascota svg, .giro svg, .go-mascota img, .giro img { width: 110px; margin: -6px auto 0; display: block; }
.ficha-img { display: block; width: 100%; height: auto; }
.go-nums { display: flex; gap: 12px; }
.go-nums div { flex: 1; padding: 10px; }
.go-nums small { font-weight: 800; font-size: 11px; letter-spacing: .1em; }
.go-nums b { display: block; font-size: 40px; line-height: 1.1; }
.go-xp { font-weight: 800; margin: 14px 0 4px; }
.go-tip { font-size: 15px; margin: 0 0 14px; }
.giro { animation: moneda 1s linear infinite; }
@keyframes moneda { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.btn { display: inline-flex; align-items: center; gap: 10px; transition: transform .12s, box-shadow .12s; }
.btn svg { width: 22px; height: 22px; }

/* =====================================================================
   2. LA MAQUINITA (.maq)
   ===================================================================== */
.maq {
  --tinta: #111; --fondo: #faf6ec; --acento: #2f5bff;
  --amarillo: #ffd23f; --azul: #2f5bff; --rojo: #ff4b3e; --verde: #19c37d; --naranja: #ff9a1f; --rosa: #ff7ac6; --cian: #34d1e0;
  --borde: 3px solid var(--tinta); --sombra: 6px 6px 0 var(--tinta);
  --f: "Bricolage Grotesque", ui-rounded, "Segoe UI", system-ui, sans-serif;
}
.maq body { background-image: radial-gradient(rgba(17, 17, 17, .13) 1.2px, transparent 1.3px); background-size: 22px 22px; }

.maq .cinta { background: var(--tinta); color: var(--amarillo); overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.maq .cinta div { display: inline-block; padding: 8px 0; animation: corre 40s linear infinite; }
.maq .cinta span { margin: 0 18px; }
.maq .cinta i { font-style: normal; color: #fff; }
@keyframes corre { to { transform: translateX(-50%); } }

.maq .logo svg { width: 46px; height: 46px; }
.maq .logo b { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.maq .logo em { font-style: normal; font-size: 12px; font-weight: 800; background: var(--rojo); color: #fff; border: 2.5px solid var(--tinta); border-radius: 6px; padding: 1px 6px; transform: rotate(-6deg) translateY(-10px); display: inline-block; letter-spacing: .06em; }
.maq .buscar { background: #fff; border: var(--borde); border-radius: 999px; padding: 9px 16px; box-shadow: 3px 3px 0 var(--tinta); }
.maq .buscar input { font-weight: 500; }
.maq .pill { background: #fff; border: var(--borde); border-radius: 999px; padding: 6px 14px 6px 7px; font-weight: 800; font-size: 16px; box-shadow: 3px 3px 0 var(--tinta); }
.maq .pill .aro { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--verde) var(--p), #e8e3d6 0); border: 2px solid var(--tinta); }
.maq .pill .aro b { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; }

.maq .hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; margin-bottom: 30px; }
.maq .bloque { border: var(--borde); border-radius: 26px; box-shadow: var(--sombra); position: relative; overflow: hidden; }
.maq .saludo { background: var(--amarillo); padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.maq .saludo small { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.maq .saludo h1 { font-size: clamp(54px, 8.4vw, 112px); line-height: .84; letter-spacing: -.055em; margin: 10px 0 16px; font-weight: 800; }
.maq .saludo h1 span { display: inline-block; background: var(--tinta); color: var(--amarillo); padding: 0 .12em .06em; border-radius: .14em; transform: rotate(-2deg); }
.maq .saludo p { font-size: 19px; font-weight: 500; max-width: 470px; margin: 0 0 22px; line-height: 1.3; }
.maq .acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.maq .btn { border: var(--borde); border-radius: 16px; padding: 13px 22px; font-weight: 800; font-size: 19px; background: var(--tinta); color: #fff; box-shadow: 4px 4px 0 rgba(0, 0, 0, .3); }
.maq .btn.blanco { background: #fff; color: var(--tinta); box-shadow: 4px 4px 0 var(--tinta); }
.maq .btn:hover { transform: translateY(-3px) rotate(-1deg); }
.maq .btn:active { transform: translateY(2px) scale(.97); }

.maq .maquina { background: var(--azul); display: grid; place-items: center; padding: 30px 18px 18px; min-height: 380px; }
.maq .gabinete { position: relative; width: min(290px, 100%); }
.maq .gab { width: 100%; }
.maq #demo { position: absolute; left: 14%; top: 19.5%; width: 72%; height: 43%; border-radius: 10px; }
.maq .ficha-mascota { position: absolute; width: 92px; right: -34px; top: -34px; animation: brinca 1.6s cubic-bezier(.3, 0, .3, 1) infinite; transform-origin: 50% 100%; }
@keyframes brinca { 0%, 100% { transform: translateY(0) scale(1.06, .94); } 40% { transform: translateY(-22px) scale(.96, 1.04) rotate(8deg); } 70% { transform: translateY(0); } }
.maq .letrero { position: absolute; z-index: 2; left: 16px; top: 16px; background: #fff; border: var(--borde); border-radius: 10px; padding: 4px 10px; font-weight: 800; font-size: 14px; transform: rotate(-4deg); box-shadow: 3px 3px 0 var(--tinta); }

.maq .cab h2 { font-size: 42px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.maq .cat { border: var(--borde); border-radius: 12px; background: #fff; padding: 7px 14px; font-weight: 800; font-size: 15px; box-shadow: 3px 3px 0 var(--tinta); }
.maq .cat:hover { transform: translateY(-2px); }
.maq .cat.on { background: var(--tinta); color: var(--amarillo); }

.maq .rejilla { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 158px; grid-auto-flow: dense; gap: 18px; }
.maq .tile {
  --bg: var(--azul);
  border: var(--borde); border-radius: 22px; box-shadow: var(--sombra); background: var(--bg); position: relative; overflow: hidden;
  cursor: pointer; transition: transform .2s cubic-bezier(.2, .9, .3, 1.5), box-shadow .2s; outline: 0;
}
.maq .tile.g { grid-column: span 2; grid-row: span 2; }
.maq .tile.a { grid-column: span 2; }
.maq .tile:hover, .maq .tile:focus-visible { transform: translate(-3px, -5px) rotate(-.6deg); box-shadow: 10px 12px 0 var(--tinta); }
.maq .tile .arte { position: absolute; inset: 0; display: grid; place-items: center; }
.maq .tile .arte svg { width: 82%; height: 82%; }
.maq .tile.a .arte svg { width: 60%; }
.maq .tile:hover .arte svg { animation: menea .5s ease-in-out infinite alternate; }
@keyframes menea { from { transform: rotate(-3deg) scale(1.05); } to { transform: rotate(3deg) scale(1.08); } }
.maq .tile .nom { position: absolute; left: 12px; bottom: 12px; background: #fff; border: var(--borde); border-radius: 12px; padding: 4px 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--tinta); max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maq .tile.g .nom { font-size: 24px; padding: 6px 14px; }
.maq .tile .rec { position: absolute; right: 12px; bottom: 14px; font-weight: 800; font-size: 13px; background: var(--tinta); color: var(--amarillo); border-radius: 8px; padding: 3px 8px; }
.maq .tile:not(.g):not(.a) .rec { display: none; }
.maq .tile.soon .arte { filter: saturate(.75); }
.maq .tile .fav { left: 10px; top: 10px; background: #fff; border: 2.5px solid var(--tinta); }
.maq .estrella { position: absolute; top: -8px; right: -8px; width: 74px; height: 74px; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.maq .estrella svg { position: absolute; inset: 0; width: 100%; animation: gira 8s linear infinite; }
.maq .estrella b { position: relative; font-size: 12px; font-weight: 800; transform: rotate(12deg); }
@keyframes gira { to { transform: rotate(360deg); } }
.maq .tile.azar .arte svg { width: 30%; }
.maq .tile.pronto { background: repeating-linear-gradient(-45deg, #fff, #fff 12px, #f1ecdf 12px, #f1ecdf 24px); display: grid; place-items: center; text-align: center; cursor: default; }
.maq .tile.pronto:hover { transform: none; box-shadow: var(--sombra); }
.maq .tile.pronto b { font-size: 20px; letter-spacing: -.02em; }
.maq .tile.pronto small { display: block; font-weight: 500; font-size: 14px; }

.maq .franja { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; margin-top: 40px; }
.maq .reto { background: var(--rosa); padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.maq .reto.hecho { background: var(--verde); }
.maq .reto .ico { width: 70px; height: 70px; flex-shrink: 0; border: var(--borde); border-radius: 18px; background: #fff; display: grid; place-items: center; transform: rotate(-6deg); }
.maq .reto .ico svg, .maq .reto .ico img { width: 50px; }
.maq .reto .txt { flex: 1; }
.maq .reto h3, .maq .mini h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.maq .reto p { margin: 2px 0 10px; font-weight: 500; }
.maq .barra { height: 18px; border: var(--borde); border-radius: 99px; background: #fff; overflow: hidden; }
.maq .barra i { display: block; height: 100%; background: var(--amarillo); border-right: var(--borde); }
.maq .mini { padding: 16px 18px; background: #fff; }
.maq .mini.verde { background: var(--verde); }
.maq .mini .num { font-size: 50px; font-weight: 800; letter-spacing: -.05em; line-height: 1; display: flex; align-items: center; gap: 6px; }
.maq .mini .num svg { width: 40px; height: 40px; }
.maq .mini p { margin: 4px 0 0; font-weight: 500; font-size: 15px; }
.maq .dias { display: flex; gap: 5px; margin-top: 8px; }
.maq .dias i { flex: 1; height: 10px; border: 2px solid var(--tinta); border-radius: 4px; }
.maq .dias i.on { background: var(--naranja); }

.maq h2.sec { font-size: 34px; font-weight: 800; letter-spacing: -.04em; margin: 0 0 6px; }
.maq .rcard { background: #fff; border: var(--borde); border-radius: 18px; box-shadow: 4px 4px 0 var(--tinta); }
.maq .rcard .mini-arte { border: 2.5px solid var(--tinta); border-radius: 12px; }
.maq .rcard b { font-weight: 800; }
.maq .rec-card { background: #fff; border: var(--borde); border-top: 12px solid var(--c); border-radius: 18px; box-shadow: 4px 4px 0 var(--tinta); }
.maq .rec-card b { letter-spacing: -.05em; }
.maq .vacio svg { width: 110px; }
.maq .pie { font-weight: 500; }
.maq .toast { background: var(--tinta); color: var(--amarillo); }

.maq .player { background: var(--fondo); }
.maq .pbar { background: var(--amarillo); border-bottom: var(--borde); }
.maq .ib { background: #fff; border: var(--borde); border-radius: 14px; box-shadow: 3px 3px 0 var(--tinta); }
.maq .ptitle { font-weight: 800; letter-spacing: -.03em; font-size: 22px; }
.maq .pscore { background: #fff; border: var(--borde); border-radius: 12px; }
.maq .pscore b { font-weight: 800; }
.maq .pscore.best { background: var(--tinta); color: var(--amarillo); }
.maq .overlay { background: rgba(17, 17, 17, .45); }
.maq .card { background: #fff; border: var(--borde); border-radius: 26px; box-shadow: 8px 8px 0 var(--tinta); }
.maq .card h3 { font-weight: 800; letter-spacing: -.04em; }
.maq .card .btn.big { background: var(--amarillo); color: var(--tinta); font-size: 24px; box-shadow: 4px 4px 0 var(--tinta); }
.maq .card .btn.ghost { background: #fff; color: var(--tinta); box-shadow: 3px 3px 0 var(--tinta); font-size: 16px; padding: 10px 14px; }
.maq .st-art { border: var(--borde); border-radius: 18px; }
.maq .st-desc { font-weight: 500; }
.maq .st-controls li { background: #f4efe2; border: 2px solid var(--tinta); border-radius: 12px; font-weight: 600; }
.maq .go-nums div { background: #f4efe2; border: var(--borde); border-radius: 16px; }
.maq .go-nums b { font-weight: 800; letter-spacing: -.05em; }
.maq .go-nums .r { background: var(--tinta); color: var(--amarillo); }
.maq .over.record .go-title { color: var(--rojo); }
.maq .go-xp { color: var(--verde); }

/* =====================================================================
   3. CELULAR
   ===================================================================== */
@media (max-width: 900px) {
  .maq .hero { grid-template-columns: 1fr; }
  .maq .maquina { display: none; }
  .maq .franja { grid-template-columns: 1fr 1fr; }
  .maq .reto { grid-column: span 2; }
  .maq .rejilla { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 14px; }
  .maq .tile.g { grid-row: span 1; }
  .maq .tile.g .arte svg { width: 60%; }
}
@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .buscar { order: 3; flex-basis: 100%; max-width: none; }
  .pill.racha { margin-left: auto; }
  .tabbar {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 50;
    padding: 6px; border: 3px solid var(--tinta); border-radius: 22px; box-shadow: 4px 4px 0 var(--tinta);
  }
  .tabbar button { flex: 1; border: 0; background: none; display: grid; justify-items: center; gap: 2px; font-weight: 800; font-size: 12px; padding: 6px 0; border-radius: 16px; }
  .tabbar button svg { width: 24px; height: 24px; }
  .tabbar button.on { border: 2.5px solid var(--tinta); }
  .maq .tabbar { background: #fff; }
  .maq .tabbar button.on { background: var(--amarillo); }

  .maq .logo b { font-size: 30px; }
  .maq .pill { padding: 5px 10px 5px 6px; font-size: 15px; box-shadow: 2px 2px 0 var(--tinta); }
  .maq .pill .lbl { display: none; }
  .maq .pill.racha { gap: 4px; }
  .maq .saludo { padding: 24px 20px; }
  .maq .saludo small { display: none; }
  .maq .saludo h1 { font-size: 54px; }
  .maq .saludo p { font-size: 17px; margin-bottom: 16px; }
  .maq .btn { font-size: 17px; padding: 11px 16px; }
  .maq .btn .largo { display: none; }
  .maq .cab h2 { font-size: 32px; }
  .maq .tile .nom { font-size: 15px; }
  .maq .tile.g .nom { font-size: 20px; }
  .maq .tile .rec { display: none; }


  .pscore { min-width: 54px; padding: 5px 8px; }
  .pscore b { font-size: 18px; }
  .maq .ptitle { font-size: 17px; }
  .pbar { gap: 6px; padding: 6px 8px; height: 56px; }
  .ib { width: 40px; height: 40px; }
}
@media (max-width: 380px) { .pscore.best { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =====================================================================
   4. MODO PC (mouse y teclado, pantalla de 900px o más)
   El juego va en una "pantalla" con su proporción, centrada sobre el
   fondo de puntitos, con un panel al lado: teclas, atajos, récord y
   más juegos. En pantalla completa (F) el panel se esconde.
   ===================================================================== */
.pzona { flex: 1; min-height: 0; display: flex; }
.pescena { flex: 1; min-width: 0; display: flex; position: relative; }
.plado, .solo-pc { display: none; }
.player.pc .solo-pc { display: grid; }
.maq .player.pc { background-image: radial-gradient(rgba(17, 17, 17, .13) 1.2px, transparent 1.3px); background-size: 22px 22px; }
.player.pc .pzona { justify-content: center; }
.player.pc .pescena { flex: none; align-items: center; justify-content: center; }
.player.pc .stage { flex: none; border: var(--borde); border-radius: 18px; overflow: hidden; box-shadow: 8px 8px 0 var(--tinta); background: #fff; }
.player.pc .plado { display: flex; flex-direction: column; gap: 14px; width: 290px; flex-shrink: 0; padding: 28px 24px 28px 4px; overflow-y: auto; }
.player.pc.full .plado { display: none; }
.player.pc.full .stage { box-shadow: none; }

.lcard { background: #fff; border: var(--borde); border-radius: 16px; box-shadow: 4px 4px 0 var(--tinta); padding: 12px 14px 14px; }
.lcard h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.teclas { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.teclas li, .st-controls li.tk { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.teclas li, .st-controls li.tk { flex-wrap: wrap; }
.teclas li > span:last-child, .st-controls li.tk > span:last-child { text-align: right; flex: 1 0 auto; }
.st-controls li.tk { padding-left: 12px; }
.st-controls li.tk::before { display: none; }
.k { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.k i { font-style: normal; font-size: 12px; opacity: .6; }
kbd {
  display: inline-block; font: inherit; font-weight: 800; font-size: 12.5px; line-height: 1; padding: 5px 8px; min-width: 26px;
  text-align: center; background: #fff; color: var(--tinta); border: 2.5px solid var(--tinta); border-radius: 8px; box-shadow: 0 3px 0 var(--tinta); white-space: nowrap;
}
.btn kbd { margin-left: 8px; font-size: 12px; padding: 3px 6px; box-shadow: 0 2px 0 var(--tinta); vertical-align: middle; }
.lcard.rec b { display: block; font-size: 42px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.lcard.rec span { font-size: 13px; font-weight: 700; opacity: .7; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini button {
  background: var(--bg); border: var(--borde); border-radius: 12px; padding: 0; overflow: hidden; text-align: left;
  box-shadow: 3px 3px 0 var(--tinta); transition: transform .15s, box-shadow .15s;
}
.mini button:hover, .mini button:focus-visible { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--tinta); outline: 0; }
.mini .a { display: grid; place-items: center; aspect-ratio: 16 / 10; }
.mini .a svg { width: 62%; height: auto; }
.mini .n { display: block; background: #fff; border-top: var(--borde); font-size: 12px; font-weight: 800; padding: 5px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-height: 640px) { .player.pc .plado .mas { display: none; } }

/* ---------- Camuflajes ---------- */
.skins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.skin {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 6px 2px 5px; background: #fff;
  border: 2.5px solid var(--tinta); border-radius: 12px; box-shadow: 2px 2px 0 var(--tinta); transition: transform .12s;
}
.skin:hover { transform: translateY(-2px); }
.skin.on { background: var(--amarillo); box-shadow: 3px 3px 0 var(--tinta); }
.skin .bola { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--tinta); }
.skin .nom { font-size: 10.5px; font-weight: 800; line-height: 1.1; text-align: center; }
.skin.bloq .bola { filter: grayscale(1) brightness(.75); }
.skin.bloq .nom { opacity: .55; }
.skin .falta { position: absolute; top: -8px; right: -6px; background: var(--tinta); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 6px; }
.skin.bloq::after { content: ""; position: absolute; top: 15px; left: 50%; width: 12px; height: 10px; margin-left: -6px; background: var(--tinta); border-radius: 2px; box-shadow: 0 -5px 0 -2px #fff, 0 -6px 0 -1px var(--tinta); }
.skin.nope { animation: nope .3s; }
@keyframes nope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.st-skin-wrap { margin: 0 0 14px; text-align: left; }
.st-skin-wrap small { display: block; font-weight: 800; font-size: 11px; letter-spacing: .1em; margin-bottom: 6px; }
.ptot { margin: 10px 0 0; font-size: 12px; font-weight: 700; }
.go-skin { margin: 4px 0 12px; font-size: 14px; font-weight: 700; }
.go-skin i { display: block; height: 8px; margin-top: 6px; border: 2px solid var(--tinta); border-radius: 6px; background: linear-gradient(90deg, var(--verde) var(--p, 0%), #fff 0); }
.go-skin.nuevo { background: var(--amarillo); border: 2.5px solid var(--tinta); border-radius: 12px; padding: 8px 10px; animation: cardin .4s; }
.go-skin.nuevo span { font-weight: 600; font-size: 12px; }

/* ---------- Portadas ilustradas: llenan su recuadro ---------- */
svg.portada { display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; }
.maq .tile .arte svg.portada { transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.maq .tile:hover .arte svg.portada { animation: none; transform: scale(1.07) rotate(-.6deg); }
.st-art:has(svg.portada) { height: min(30vh, 210px); }
.rcard .mini-arte svg.portada, .mini .a svg.portada { width: 100%; height: 100%; }
.maq .tile .arte { overflow: hidden; border-radius: inherit; }

/* ---------- Anuncios (ver js/anuncios.js) ---------- */
.anuncio { display: grid; place-items: center; gap: 4px; margin: 22px auto; max-width: 1200px; min-height: 90px; }
.anuncio small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.anuncio ins { width: 100%; }
.anuncio.ancho { padding-inline: 16px; }
.anuncio.prueba { border: 3px dashed var(--tinta); border-radius: 16px; background: repeating-linear-gradient(-45deg, #fff, #fff 12px, #f1ecdf 12px, #f1ecdf 24px); font-weight: 800; min-height: 100px; }
.plado .anuncio { margin: 0; min-height: 250px; background: #fff; border: var(--borde); border-radius: 16px; box-shadow: 4px 4px 0 var(--tinta); overflow: hidden; }
.plado .anuncio.prueba { min-height: 250px; }
.go-premio { width: 100%; margin-bottom: 8px; font-size: 14px; }
.aviso-cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: var(--borde); border-radius: 16px; box-shadow: 6px 6px 0 var(--tinta);
}
.aviso-cookies p { margin: 0; font-size: 14px; font-weight: 600; flex: 1; }
.aviso-cookies a { color: inherit; }
.pie .legal a { color: inherit; font-weight: 800; }
@media (max-width: 600px) { .aviso-cookies { flex-direction: column; align-items: stretch; bottom: 86px; } }
.plado .anuncio.prueba { background: repeating-linear-gradient(-45deg, #fff, #fff 12px, #f1ecdf 12px, #f1ecdf 24px); }

/* Lista de todos los juegos en el pie (para que los buscadores encuentren cada página) */
.todos-juegos { max-width: 900px; margin: 10px auto; }
.todos-juegos h2 { font-size: 16px; margin: 6px 0; }
.todos-juegos p { font-size: 13px; line-height: 1.9; margin: 0; }
.todos-juegos a { color: inherit; text-decoration: none; font-weight: 700; }
.todos-juegos a:hover { text-decoration: underline; }

/* Portadas ilustradas (imagen encima de la portada dibujada) */
.rcard .mini-arte, .st-art, .mini .a, button[data-cambia] .a { position: relative; }
.portada-foto { border-radius: inherit; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }
.maq .tile:hover .arte .portada-foto { transform: scale(1.07) rotate(-.6deg); }
