g: border-box; }
.nproject-widget[data-npg-game] * { font-family: var(--npg-font); }
.nproject-widget[data-npg-game] img { display: block; max-width: 100%; }
.nproject-widget[data-npg-game] a { color: inherit; text-decoration: none; }
.nproject-widget[data-npg-game] a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.nproject-widget[data-npg-game] [hidden] { display: none !important; }
.nproject-widget[data-npg-game] .npg-sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* =====================================================================
2. FONDO EXTERIOR Y VÍDEO
===================================================================== */
.nproject-widget[data-npg-game] .npg-background {
position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
background:
radial-gradient(100% 55% at 50% 0%, rgba(var(--npg-bg-right-rgb), .22), transparent 62%),
radial-gradient(105% 68% at 50% 100%, rgba(var(--npg-bg-left-rgb), .38), transparent 68%),
linear-gradient(180deg, rgba(var(--npg-bg-right-rgb), .10), #101016 45%, rgba(var(--npg-bg-left-rgb), .12)),
#0b0b10;
}
.nproject-widget[data-npg-game] .nproject-widget__video {
position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.nproject-widget[data-npg-game] .nproject-widget__overlay {
position: absolute; inset: 0;
background:
radial-gradient(100% 55% at 50% 0%, rgba(var(--npg-bg-right-rgb), .14), transparent 65%),
radial-gradient(105% 68% at 50% 100%, rgba(var(--npg-bg-left-rgb), .23), transparent 68%),
radial-gradient(120% 90% at 50% 45%, rgba(4, 6, 12, .3), rgba(4, 6, 12, .7)),
linear-gradient(180deg, rgba(4, 6, 12, .35), rgba(4, 6, 12, .6));
}
/* =====================================================================
3. CARCASA DE LA CONSOLA
===================================================================== */
.nproject-widget[data-npg-game] .switch-ui-wrapper {
position: relative; z-index: 1; width: min(100%, 1300px); margin: 0 auto;
}
.nproject-widget[data-npg-game] .switch-ui {
position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden;
border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--npg-radius);
background: linear-gradient(165deg, #191920, #0e0e13 55%, #0a0a0e);
box-shadow: 0 26px 56px rgba(0, 0, 0, .55);
}
/* =====================================================================
4. CABECERA
z-index 3: queda siempre por encima de la capa de la pantalla, así los
carriles Joy-Con entran por debajo de ella y nunca por encima.
===================================================================== */
.nproject-widget[data-npg-game] .switch-topbar {
position: relative; z-index: 3; display: flex; align-items: center; gap: 14px;
padding: clamp(12px, 1.4vw, 20px) clamp(18px, 2.6vw, 34px);
background: linear-gradient(135deg, var(--npg-red), var(--npg-red-light) 55%, var(--npg-red-soft));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .18);
}
.nproject-widget[data-npg-game] .switch-user {
display: inline-flex; align-items: center; gap: 13px; min-width: 0; max-width: 100%;
padding: 5px 24px 5px 5px; border-radius: 999px; color: #fff;
background: rgba(0, 0, 0, .68);
transition: background-color .18s var(--npg-ease), transform .18s var(--npg-ease);
}
.nproject-widget[data-npg-game] .switch-user:hover { background: rgba(0, 0, 0, .76); transform: translateY(-1px); }
.nproject-widget[data-npg-game] .switch-user img {
flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff;
box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 4px 10px rgba(0, 0, 0, .25);
}
.nproject-widget[data-npg-game] .switch-title {
font-size: clamp(16px, 1.7vw, 23px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere;
}
.nproject-widget[data-npg-game] .switch-spacer { flex: 1; }
.nproject-widget[data-npg-game] .switch-battery-modern {
display: flex; align-items: center; gap: 10px; flex: none; min-height: 42px; margin-left: auto;
padding: 7px 16px 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .68); color: #fff;
}
.nproject-widget[data-npg-game] .battery-body {
position: relative; width: 36px; height: 18px; padding: 2px;
border: 2px solid rgba(255, 255, 255, .92); border-radius: 5px;
}
.nproject-widget[data-npg-game] .battery-body::after {
content: ''; position: absolute; top: 4px; right: -6px; width: 3px; height: 6px;
background: #fff; border-radius: 0 2px 2px 0;
}
.nproject-widget[data-npg-game] .battery-level { width: 100%; height: 100%; border-radius: 2px; background: #2fd671; }
.nproject-widget[data-npg-game] .battery-percent { display: inline; font-size: 16px; font-weight: 800; line-height: 1; }
/* =====================================================================
5. PANTALLA, CARRILES JOY-CON Y TARJETA DEL JUEGO
isolation: isolate agrupa carriles, tarjeta y dock en una capa propia
situada por debajo de la cabecera.
===================================================================== */
.nproject-widget[data-npg-game] .npg-screen {
position: relative; isolation: isolate;
display: flex; flex-direction: column; align-items: center;
padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px) var(--npg-icon-gap);
background:
radial-gradient(95% 75% at 10% 0%, rgba(var(--npg-bg-left-rgb), .35), transparent 62%),
radial-gradient(92% 75% at 94% 100%, rgba(var(--npg-bg-right-rgb), .27), transparent 64%),
linear-gradient(160deg, rgba(var(--npg-bg-left-rgb), .12), #101016 45%, rgba(var(--npg-bg-right-rgb), .10)),
#0b0b10;
}
.nproject-widget[data-npg-game] .npg-rail {
position: absolute; top: 0; bottom: 0; z-index: 2; width: var(--npg-rail); pointer-events: none;
}
.nproject-widget[data-npg-game] .npg-rail-left { left: 0; background: linear-gradient(180deg, var(--npg-blue-soft), var(--npg-blue)); }
.nproject-widget[data-npg-game] .npg-rail-right { right: 0; background: linear-gradient(180deg, var(--npg-red-light), var(--npg-red-deep)); }
.nproject-widget[data-npg-game] .switch-games { position: relative; z-index: 1; width: min(100%, 1040px); margin: 0 auto; }
.nproject-widget[data-npg-game] .game-item {
width: 100%; padding: clamp(24px, 2.8vw, 42px);
border: 1px solid rgba(255, 255, 255, .16); border-radius: 24px;
background:
linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
linear-gradient(180deg, rgba(10, 10, 15, .32), rgba(10, 10, 15, .48));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 40px rgba(0, 0, 0, .4);
}
.nproject-widget[data-npg-game] .npg-card-layout {
display: grid; grid-template-columns: minmax(190px, 34%) minmax(0, 1fr);
column-gap: clamp(24px, 3vw, 44px); row-gap: 18px; align-items: center;
}
.nproject-widget[data-npg-game] .npg-game-copy { grid-column: 2; grid-row: 1; align-self: end; min-width: 0; text-align: center; }
.nproject-widget[data-npg-game] .npg-game-copy h1 {
margin: 0; color: #fff; font-size: clamp(30px, 3.2vw, 48px);
line-height: 1.1; font-weight: 800; overflow-wrap: anywhere;
}
/* H1 único: los saltos se adaptan al ancho de pantalla. */
.nproject-widget[data-npg-game] .npg-title-line {
display: block; white-space: normal; text-wrap: balance; text-transform: uppercase;
}
.nproject-widget[data-npg-game] .npg-title-platform {
margin-top: .3em; font-size: .65em; line-height: 1.25;
}
.nproject-widget[data-npg-game] .npg-title-nintendo { color: #ff5e55; }
.nproject-widget[data-npg-game] .npg-title-switch { color: #3a9aff; }
/* El tamaño responde al ancho real de la columna, también en Elementor. */
@supports (font-size: 1cqi) {
.nproject-widget[data-npg-game] .npg-game-copy { container-type: inline-size; }
.nproject-widget[data-npg-game] .npg-title-game { font-size: min(1em, 10cqi); }
.nproject-widget[data-npg-game] .npg-title-platform { font-size: min(.65em, 6.6cqi); }
}
.nproject-widget[data-npg-game] .npg-summary {
grid-column: 2; grid-row: 2; min-width: 0; text-align: center;
margin: 0 auto; max-width: 48ch; color: #e2e6ee;
font-size: clamp(16px, 1.25vw, 19px); font-weight: 500; line-height: 1.55;
}
.nproject-widget[data-npg-game] .img-wrapper {
grid-column: 1; grid-row: 1 / 4; position: relative; display: block;
width: 100%; max-width: 320px; aspect-ratio: 1; margin: 0 auto; overflow: hidden;
border: 2px solid rgba(255, 255, 255, .3); border-radius: 20px; background: #161a24;
box-shadow: 0 14px 28px rgba(0, 0, 0, .45), 0 0 0 3px rgba(72, 166, 255, .18);
transition: transform .2s var(--npg-ease), border-color .2s var(--npg-ease);
}
.nproject-widget[data-npg-game] .img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.nproject-widget[data-npg-game] .img-wrapper:hover { transform: translateY(-4px); border-color: var(--npg-blue-soft); }
.nproject-widget[data-npg-game] .npg-game-download { grid-column: 2; grid-row: 3; align-self: start; min-width: 0; text-align: center; }
/* Botón principal "Ver enlaces de descarga". */
.nproject-widget[data-npg-game] .np-switch3d-btn {
position: relative; isolation: isolate; overflow: hidden;
display: inline-flex; align-items: center; justify-content: center; gap: 10px;
max-width: 100%; min-height: 54px; padding: 14px 26px;
border: 0; border-radius: 999px; color: #fff;
font-size: 15px; font-weight: 800; line-height: 1.4; text-align: center;
text-transform: uppercase; letter-spacing: .035em; overflow-wrap: anywhere;
background:
linear-gradient(rgba(0, 0, 0, .16), rgba(0, 0, 0, .16)),
linear-gradient(135deg, var(--npg-red), var(--npg-red-light) 38%, var(--npg-blue-light) 78%, var(--npg-blue));
box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), 0 6px 0 var(--npg-blue-deep), 0 14px 22px rgba(0, 0, 0, .4);
transition: transform .18s var(--npg-ease), box-shadow .18s var(--npg-ease);
}
/* Escritorio: botón más ancho y esquinas suavemente redondeadas. */
@media (min-width: 769px) {
.nproject-widget[data-npg-game] .np-switch3d-btn {
width: min(100%, 360px);
padding: 14px 32px;
border-radius: 12px;
font-size: 17px;
}
}
.nproject-widget[data-npg-game] .np-switch3d-btn > :not(.np2-paint) { position: relative; z-index: 2; }
.nproject-widget[data-npg-game] .np-switch3d-btn span { min-width: 0; }
.nproject-widget[data-npg-game] .np-switch3d-btn:hover { transform: translateY(-2px); }
.nproject-widget[data-npg-game] .np-switch3d-btn:active {
transform: translateY(3px);
box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), 0 3px 0 var(--npg-blue-deep), 0 8px 14px rgba(0, 0, 0, .35);
}
/* =====================================================================
6. DOCK: FAVORITOS, REPORTES Y PERSONALIZAR
===================================================================== */
.nproject-widget[data-npg-game] .np2-dock {
position: relative; z-index: 2;
display: flex; justify-content: center; align-items: stretch;
gap: clamp(8px, 1.6vw, 26px);
width: min(100%, 660px);
margin: var(--npg-icon-gap) auto 0;
padding: clamp(10px, 1.1vw, 15px) clamp(12px, 1.8vw, 24px);
border: 1px solid rgba(255, 255, 255, .16);
border-radius: var(--np2-r-l);
background:
linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
linear-gradient(180deg, rgba(10, 10, 15, .34), rgba(10, 10, 15, .48));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20), 0 16px 36px rgba(0, 0, 0, .42);
transition: transform var(--np2-fast) var(--np2-ease), border-color var(--np2-fast) var(--np2-ease);
}
.nproject-widget[data-npg-game] .np2-dock:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .26); }
.nproject-widget[data-npg-game] .np2-dock__item {
flex: 1 1 0; min-width: 0; margin: 0;
display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
padding: 8px 4px; border: 0; border-radius: var(--np2-r-m);
font-family: inherit; line-height: 1.3; text-decoration: none; color: #fff;
background-color: rgba(255, 255, 255, 0);
cursor: pointer; appearance: none; -webkit-appearance: none;
transition: background-color var(--np2-fast) var(--np2-ease), transform var(--np2-fast) var(--np2-ease);
}
.nproject-widget[data-npg-game] .np2-dock__item:hover { background-color: rgba(255, 255, 255, .07); transform: translateY(-2px); }
.nproject-widget[data-npg-game] .np2-dock__item:active { transform: translateY(0); }
.nproject-widget[data-npg-game] .np2-dock__item:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nproject-widget[data-npg-game] .np2-dock__icon {
position: relative; display: block; flex: none;
width: clamp(46px, 4.2vw, 62px); height: clamp(46px, 4.2vw, 62px);
border-radius: 50%; overflow: hidden;
background: linear-gradient(160deg, rgba(255, 255, 255, .97), rgba(228, 231, 240, .88));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 5px 14px rgba(0, 0, 0, .34), 0 0 0 0 rgba(255, 255, 255, 0);
transition: transform var(--np2-fast) var(--np2-ease), box-shadow var(--np2-fast) var(--np2-ease);
}
.nproject-widget[data-npg-game] .np2-dock__icon::after {
content: ""; position: absolute; left: 12%; top: 7%; width: 66%; height: 28%; z-index: 3;
border-radius: 50%; transform: rotate(-18deg); pointer-events: none;
background: radial-gradient(circle at top, rgba(255, 255, 255, .72), transparent 72%);
}
.nproject-widget[data-npg-game] .np2-dock__icon img { width: 100%; height: 100%; object-fit: cover; }
.nproject-widget[data-npg-game] .np2-dock__item:hover .np2-dock__icon {
transform: scale(1.06);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 5px 14px rgba(0, 0, 0, .34), 0 0 0 2px var(--np2-ac-3);
}
.nproject-widget[data-npg-game] .np2-dock__icon--dark {
background-image: none; background-color: #000;
box-shadow: 0 5px 14px rgba(0, 0, 0, .34), 0 0 0 0 rgba(255, 255, 255, 0);
}
.nproject-widget[data-npg-game] .np2-dock__icon--dark::after { content: none; }
.nproject-widget[data-npg-game] .np2-dock__icon--dark img { transform: none; }
.nproject-widget[data-npg-game] .np2-dock__item:hover .np2-dock__icon--dark {
box-shadow: 0 5px 14px rgba(0, 0, 0, .34), 0 0 0 2px var(--np2-ac-3);
}
.nproject-widget[data-npg-game] .np2-dock__label {
display: flex; align-items: flex-start; justify-content: center;
width: 100%; min-height: 2.44em;
font-size: clamp(11.5px, .82vw, 14px); font-weight: 800; letter-spacing: .05em;
text-transform: uppercase; text-align: center; line-height: 1.22;
color: rgba(255, 255, 255, .72);
white-space: normal; overflow-wrap: break-word;
transition: color var(--np2-fast) var(--np2-ease);
}
.nproject-widget[data-npg-game] .np2-dock__item:hover .np2-dock__label,
.nproject-widget[data-npg-game] .np2-dock__item.np2-is-saved .np2-dock__label { color: var(--np2-ac-3); }
.nproject-widget[data-npg-game] .np2-dock__item.np2-is-saved .np2-dock__icon {
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 5px 14px rgba(0, 0, 0, .34), 0 0 0 2px var(--np2-ac-3);
}
/* Avatares del botón de favoritos (carrusel o Mii guardado). */
.nproject-widget[data-npg-game] .np2-dock__icon--avatars.np2-has-mii {
background-image: linear-gradient(160deg, rgba(255, 255, 255, .24), rgba(0, 0, 0, .16));
}
.nproject-widget[data-npg-game] .np2-av {
position: absolute; inset: 0; display: block; opacity: 0; transform: scale(.85);
animation: np2-av-cycle 6s cubic-bezier(.33, 0, .2, 1) infinite;
}
.nproject-widget[data-npg-game] .np2-av img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.06); }
.nproject-widget[data-npg-game] .np2-av-1 { animation-delay: 0s; }
.nproject-widget[data-npg-game] .np2-av-2 { animation-delay: 1.5s; }
.nproject-widget[data-npg-game] .np2-av-3 { animation-delay: 3s; }
.nproject-widget[data-npg-game] .np2-av-4 { animation-delay: 4.5s; }
.nproject-widget[data-npg-game] .np2-dock__userpic {
position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
object-fit: contain; transform: scale(.86);
}
.nproject-widget[data-npg-game] .np2-dock__icon--avatars.np2-has-mii .np2-av,
.nproject-widget[data-npg-game] .np2-dock__icon--avatars:has(.np2-dock__userpic) .np2-av { display: none; }
/* Corazón y marca de favorito guardado. */
.nproject-widget[data-npg-game] .np2-fav-slot { position: relative; flex: 1 1 0; min-width: 0; display: flex; }
.nproject-widget[data-npg-game] .np2-fav-slot > .np2-dock__item { flex: 1 1 auto; }
.nproject-widget[data-npg-game] .np2-fav-wrap { position: relative; display: block; flex: none; }
.nproject-widget[data-npg-game] .np2-heart {
position: absolute; inset: 0; z-index: 6; pointer-events: none;
display: flex; align-items: center; justify-content: center;
color: #ff2d55; opacity: 0; transform: scale(0);
}
.nproject-widget[data-npg-game] .np2-heart svg { width: 62%; height: 62%; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.nproject-widget[data-npg-game] .np2-heart.np2-pop { animation: np2-heart-pop .82s cubic-bezier(.3, .8, .35, 1) both; }
.nproject-widget[data-npg-game] .np2-heart.np2-pop::before {
content: ""; position: absolute; inset: 0; border-radius: 50%;
border: 2px solid #ff2d55; animation: np2-heart-ring .62s ease-out both;
}
.nproject-widget[data-npg-game] .np2-heart-badge {
position: absolute; right: -2px; bottom: -2px; z-index: 7;
width: 22px; height: 22px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
color: #fff; background: #ff2d55;
box-shadow: 0 3px 8px rgba(0, 0, 0, .45), 0 0 0 2px rgba(10, 10, 15, .55);
opacity: 0; transform: scale(.4);
transition: opacity var(--np2-fast) var(--np2-ease), transform var(--np2-fast) var(--np2-ease);
}
.nproject-widget[data-npg-game] .np2-heart-badge svg { width: 12px; height: 12px; }
.nproject-widget[data-npg-game] .np2-dock__item.np2-is-saved .np2-heart-badge { opacity: 1; transform: scale(1); }
/* Menú del favorito (Quitar favorito / Ir a mi cuenta). */
.nproject-widget[data-npg-game] .np2-fav-menu {
position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 9;
transform: translateX(-50%); transform-origin: bottom center;
width: max-content; max-width: min(240px, calc(100vw - 40px));
display: flex; flex-direction: column; gap: 4px;
padding: 6px; border-radius: 16px;
background:
linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04)),
linear-gradient(165deg, #1b1b23, #101016);
border: 1px solid rgba(255, 255, 255, .16);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 40px rgba(0, 0, 0, .55);
animation: np2-favmenu-in .22s var(--np2-ease) both;
}
.nproject-widget[data-npg-game] .np2-fav-menu::after {
content: ""; position: absolute; left: 50%; bottom: -6px;
width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
background: #12121a;
border-right: 1px solid rgba(255, 255, 255, .16);
border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.nproject-widget[data-npg-game] .np2-fav-menu__item {
display: flex; align-items: center; gap: 10px;
min-height: 44px; padding: 0 14px; border: 0; border-radius: 11px;
font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .01em;
color: rgba(255, 255, 255, .82); text-align: left; text-decoration: none;
background: transparent; cursor: pointer; white-space: nowrap;
transition: background-color var(--np2-fast) var(--np2-ease), color var(--np2-fast) var(--np2-ease);
}
.nproject-widget[data-npg-game] .np2-fav-menu__item svg { flex: none; width: 16px; height: 16px; opacity: .7; }
.nproject-widget[data-npg-game] .np2-fav-menu__item:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.nproject-widget[data-npg-game] .np2-fav-menu__item:hover svg { opacity: 1; }
.nproject-widget[data-npg-game] .np2-fav-menu__item:focus-visible { outline: 3px solid #fff; outline-offset: -2px; }
.nproject-widget[data-npg-game] .np2-fav-menu__item[data-np2-fav-remove]:hover { background: rgba(255, 45, 85, .16); color: #ff5d7e; }
/* =====================================================================
7. PIE DE LA CONSOLA
===================================================================== */
.nproject-widget[data-npg-game] .switch-bottom {
position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
padding: clamp(12px, 1.3vw, 18px) clamp(16px, 2.2vw, 28px);
background: linear-gradient(135deg, var(--npg-blue), var(--npg-blue-light) 50%, var(--npg-blue-soft));
}
.nproject-widget[data-npg-game] .switch-bottom::before {
content: ''; position: absolute; top: 0; left: var(--npg-rail); right: var(--npg-rail);
height: 1px; background: rgba(255, 255, 255, .3);
}
.nproject-widget[data-npg-game] .npg-foot-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nproject-widget[data-npg-game] .controller-status { display: flex; flex-direction: column; gap: 4px; flex: none; }
.nproject-widget[data-npg-game] .controller-status .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.nproject-widget[data-npg-game] .controller-status .dot.active { background: #5cff9b; }
.nproject-widget[data-npg-game] .footer-icon-left {
flex: none; width: clamp(36px, 3.2vw, 50px); height: clamp(36px, 3.2vw, 50px); object-fit: contain;
}
.nproject-widget[data-npg-game] .footer-logo {
width: clamp(170px, 18vw, 270px); height: clamp(42px, 4.8vw, 66px); object-fit: contain; margin: 0 auto;
}
.nproject-widget[data-npg-game] .npg-foot-right { min-width: 0; }
/* =====================================================================
8. PINTURA AL CAMBIAR DE TEMA
===================================================================== */
.nproject-widget[data-npg-game] .switch-topbar > :not(.np2-paint),
.nproject-widget[data-npg-game] .switch-bottom > :not(.np2-paint) { position: relative; z-index: 7; }
.nproject-widget[data-npg-game] .np2-paint {
position: absolute; inset: 0; z-index: 6; pointer-events: none;
transform: scale(0);
transition: transform .55s cubic-bezier(.32, .78, .28, 1), opacity .26s ease;
}
.nproject-widget[data-npg-game] .np2-paint::after { content: ""; position: absolute; background: rgba(255, 255, 255, .45); }
.nproject-widget[data-npg-game] .np2-paint--bar { transform-origin: left center; transform: scaleX(0); }
.nproject-widget[data-npg-game] .np2-paint--bar::after { top: 0; bottom: 0; right: 0; width: 2px; }
.nproject-widget[data-npg-game] .np2-paint--foot { transform-origin: right center; transform: scaleX(0); }
.nproject-widget[data-npg-game] .np2-paint--foot::after { top: 0; bottom: 0; left: 0; width: 2px; }
.nproject-widget[data-npg-game] .np2-paint--rail { transform-origin: bottom center; transform: scaleY(0); }
.nproject-widget[data-npg-game] .np2-paint--rail::after { left: 0; right: 0; top: 0; height: 2px; }
.nproject-widget[data-npg-game] .np2-paint--btn { transform-origin: left center; transform: scaleX(0); z-index: 1; }
.nproject-widget[data-npg-game] .np2-paint--btn::after { top: 0; bottom: 0; right: 0; width: 2px; }
.nproject-widget[data-npg-game] .np2-paint.np2-fill { transform: scaleX(1) scaleY(1); }
.nproject-widget[data-npg-game] .np2-paint.np2-fade { opacity: 0; }
/* =====================================================================
9. ANIMACIONES DEL WIDGET
===================================================================== */
/* Entrada de encaje: espera de 500 ms y línea temporal compartida de 2200 ms.
Contactos tras la espera: izquierdo al 36% (792 ms), derecho al 66% (1452 ms).
Solo transform/opacity: no se animan medidas, filtros ni sombras. */
/* Caída vertical continua: acelera hasta el impacto, sin frenada intermedia. */
@keyframes npg-joy-left {
0%, 6% { opacity: 0; transform: translateY(-105%); }
9% { opacity: 1; transform: translateY(-105%); animation-timing-function: cubic-bezier(.55, 0, .85, .4); }
36% { opacity: 1; transform: translateY(0); animation-timing-function: ease-out; }
40% { transform: translateY(-5px); }
45% { transform: translateY(0); }
49% { transform: translateY(-2px); }
54%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes npg-joy-right {
0%, 28% { opacity: 0; transform: translateY(-105%); }
31% { opacity: 1; transform: translateY(-105%); animation-timing-function: cubic-bezier(.55, 0, .85, .4); }
66% { opacity: 1; transform: translateY(0); animation-timing-function: ease-out; }
70% { transform: translateY(-5px); }
75% { transform: translateY(0); }
79% { transform: translateY(-2px); }
84%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes npg-shell-impact {
0%, 36% { transform: translate(0, 0) rotate(0); }
38% { transform: translate(var(--npg-hit-x), var(--npg-hit-y)) rotate(calc(-1 * var(--npg-hit-angle))); }
42% { transform: translate(-2px, -1px) rotate(.08deg); }
47% { transform: translate(1px, 1px) rotate(-.04deg); }
54%, 66% { transform: translate(0, 0) rotate(0); }
68% { transform: translate(calc(-1 * var(--npg-hit-x)), var(--npg-hit-y)) rotate(var(--npg-hit-angle)); }
72% { transform: translate(2px, -1px) rotate(-.08deg); }
77% { transform: translate(-1px, 1px) rotate(.04deg); }
86%, 100% { transform: translate(0, 0) rotate(0); }
}
@keyframes npg-contact-left {
0%, 35% { opacity: 0; transform: scaleY(.25); }
36% { opacity: .85; transform: scaleY(.65); }
46%, 100% { opacity: 0; transform: scaleY(1); }
}
@keyframes npg-contact-right {
0%, 65% { opacity: 0; transform: scaleY(.25); }
66% { opacity: .85; transform: scaleY(.65); }
76%, 100% { opacity: 0; transform: scaleY(1); }
}
@keyframes np2-av-cycle {
0% { opacity: 0; transform: scale(.92) rotate(-3deg); }
6% { opacity: 1; transform: scale(1.01) rotate(.6deg); }
10% { opacity: 1; transform: scale(1) rotate(0deg); }
25% { opacity: 1; transform: scale(1) rotate(0deg); }
33% { opacity: 0; transform: scale(.97) rotate(2deg); }
100% { opacity: 0; transform: scale(.92) rotate(-3deg); }
}
@keyframes np2-heart-pop {
0% { opacity: 0; transform: scale(0) translateY(0); }
22% { opacity: 1; transform: scale(1.28) translateY(-2px); }
38% { opacity: 1; transform: scale(.94) translateY(-6px); }
52% { opacity: 1; transform: scale(1.06) translateY(-12px); }
100% { opacity: 0; transform: scale(.72) translateY(-38px); }
}
@keyframes np2-heart-ring { 0% { opacity: .55; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes np2-favmenu-in {
from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.95); }
to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes np2-favmenu-in-m {
from { opacity: 0; transform: translateY(10px) scale(.95); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
/* Las capas temporales se liberan al terminar la entrada. */
.nproject-widget[data-npg-game] {
--npg-intro-delay: 500ms;
--npg-intro-duration: 2200ms;
--npg-hit-x: 3px;
--npg-hit-y: 3px;
--npg-hit-angle: .12deg;
}
.nproject-widget[data-npg-game] .npg-rail::after {
content: ''; position: absolute; inset: 0; pointer-events: none;
background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .95) 78%, transparent);
opacity: 0; transform-origin: center bottom;
}
@media (prefers-reduced-motion: no-preference) {
.nproject-widget[data-npg-game].npg-intro-pending .npg-rail {
opacity: 0; transform: translateY(-105%);
}
.nproject-widget[data-npg-game].npg-enter .npg-rail,
.nproject-widget[data-npg-game].npg-enter .switch-ui-wrapper {
will-change: transform;
animation-duration: var(--npg-intro-duration);
animation-delay: var(--npg-intro-delay);
animation-timing-function: ease-out;
animation-fill-mode: both;
animation-iteration-count: 1;
}
.nproject-widget[data-npg-game].npg-enter .npg-rail-left { animation-name: npg-joy-left; }
.nproject-widget[data-npg-game].npg-enter .npg-rail-right { animation-name: npg-joy-right; }
.nproject-widget[data-npg-game].npg-enter .switch-ui-wrapper { animation-name: npg-shell-impact; transform-origin: 50% 60%; }
.nproject-widget[data-npg-game].npg-enter .npg-rail::after {
animation: var(--npg-intro-duration) ease-out var(--npg-intro-delay) both;
}
.nproject-widget[data-npg-game].npg-enter .npg-rail-left::after { animation-name: npg-contact-left; }
.nproject-widget[data-npg-game].npg-enter .npg-rail-right::after { animation-name: npg-contact-right; }
}
@media (max-width: 768px) {
.nproject-widget[data-npg-game] { --npg-hit-x: 2px; --npg-hit-y: 2px; --npg-hit-angle: .08deg; }
}
/* Fuera de pantalla se congelan todas las animaciones. */
.nproject-widget[data-npg-game].npg-offscreen *,
.nproject-widget[data-npg-game].npg-offscreen *::before,
.nproject-widget[data-npg-game].npg-offscreen *::after { animation-play-state: paused !important; }
/* =====================================================================
10. RESPONSIVE DEL WIDGET
===================================================================== */
@media (min-width: 1700px) {
.nproject-widget[data-npg-game] .switch-ui-wrapper { width: min(100%, 1400px); }
}
@media (max-width: 768px) {
.nproject-widget[data-npg-game] { --npg-top: 120px; --npg-icon-gap: clamp(20px, 5vw, 28px); }
.nproject-widget[data-npg-game] .nproject-widget__video { display: none; }
.nproject-widget[data-npg-game] .npg-screen { padding-top: var(--npg-icon-gap); padding-bottom: var(--npg-icon-gap); }
.nproject-widget[data-npg-game] .npg-card-layout { grid-template-columns: minmax(0, 1fr); row-gap: var(--npg-icon-gap); }
.nproject-widget[data-npg-game] .npg-game-copy { grid-column: 1; grid-row: 1; }
.nproject-widget[data-npg-game] .img-wrapper { grid-column: 1; grid-row: 2; width: min(100%, 280px); }
.nproject-widget[data-npg-game] .npg-summary { grid-column: 1; grid-row: 3; }
.nproject-widget[data-npg-game] .npg-game-download { grid-column: 1; grid-row: 4; }
.nproject-widget[data-npg-game] .npg-game-copy h1 { font-size: clamp(27px, 5.3vw, 38px); }
.nproject-widget[data-npg-game] .switch-bottom { grid-template-columns: minmax(0, 1fr); min-height: 86px; }
.nproject-widget[data-npg-game] .npg-foot-left,
.nproject-widget[data-npg-game] .npg-foot-right { display: none; }
.nproject-widget[data-npg-game] .footer-logo { width: clamp(200px, 42vw, 280px); height: 56px; }
}
@media (max-width: 620px) {
.nproject-widget[data-npg-game] .np2-fav-menu {
left: 0; right: auto; transform: none; transform-origin: bottom left;
animation-name: np2-favmenu-in-m; max-width: calc(100vw - 44px);
}
.nproject-widget[data-npg-game] .np2-fav-menu::after { left: 26px; transform: rotate(45deg); }
}
@media (max-width: 600px) {
.nproject-widget[data-npg-game] { --npg-radius: 24px; --npg-rail: 6px; --npg-top: 110px; padding-right: 12px; padding-left: 12px; }
.nproject-widget[data-npg-game] .switch-topbar { padding: 12px 14px; gap: 8px; }
.nproject-widget[data-npg-game] .switch-user { gap: 10px; padding: 4px 20px 4px 4px; }
.nproject-widget[data-npg-game] .switch-user img { width: 42px; height: 42px; }
.nproject-widget[data-npg-game] .switch-battery-modern { min-height: 38px; gap: 8px; padding: 6px 13px 6px 11px; }
.nproject-widget[data-npg-game] .battery-body { width: 32px; height: 16px; }
.nproject-widget[data-npg-game] .battery-percent { font-size: 15px; }
.nproject-widget[data-npg-game] .npg-screen { padding-right: 18px; padding-left: 18px; }
.nproject-widget[data-npg-game] .game-item { padding: 24px 16px; border-radius: 18px; }
.nproject-widget[data-npg-game] .np-switch3d-btn { width: 100%; padding: 14px 16px; font-size: 14px; }
.nproject-widget[data-npg-game] .np2-dock { gap: 4px; padding: 12px 6px; }
.nproject-widget[data-npg-game] .switch-bottom { padding: 14px; }
.nproject-widget[data-npg-game] .footer-logo { width: clamp(180px, 56vw, 260px); }
}
@media (max-width: 420px) {
.nproject-widget[data-npg-game] .switch-topbar { flex-wrap: wrap; }
.nproject-widget[data-npg-game] .switch-spacer { display: none; }
.nproject-widget[data-npg-game] .npg-screen { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 390px) {
.nproject-widget[data-npg-game] { --npg-top: 100px; padding-left: 10px; padding-right: 10px; }
.nproject-widget[data-npg-game] .switch-bottom { padding: 12px; }
.nproject-widget[data-npg-game] .np2-fav-menu__item { font-size: 13px; min-height: 42px; padding: 0 12px; }
.nproject-widget[data-npg-game] .np2-fav-menu::after { left: 22px; }
.nproject-widget[data-npg-game] .np2-heart-badge { width: 19px; height: 19px; }
.nproject-widget[data-npg-game] .np2-heart-badge svg { width: 10px; height: 10px; }
}
/* =====================================================================
11. PANELES MODALES (se mueven a por script)
===================================================================== */
.npg-panel-root .np2-modal {
--np2-r-l: 24px;
--np2-r-m: 16px;
--np2-ease: cubic-bezier(.22, .61, .36, 1);
--np2-fast: .18s;
--np2-font: 'Dosis', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
--np2-ac-1: #e60012;
--np2-ac-2: #ff3b30;
--np2-ac-3: #ff6b62;
--np2-ac-deep: #b8000f;
--np2-ac-alt: #1f8bff;
position: fixed; inset: 0; z-index: 2147483000;
display: flex; align-items: center; justify-content: center;
padding: 20px;
font-family: var(--np2-font); line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
.npg-panel-root .np2-modal,
.npg-panel-root .np2-modal *,
.npg-panel-root .np2-modal *::before,
.npg-panel-root .np2-modal *::after { box-sizing: border-box; font-family: var(--np2-font); }
.npg-panel-root .np2-modal img { max-width: 100%; display: block; }
.npg-panel-root [hidden] { display: none !important; }
.npg-panel-root .np2-modal__scrim {
position: absolute; inset: 0; background: rgba(5, 5, 9, .72);
animation: np2-fade .32s var(--np2-ease) both;
}
.npg-panel-root .np2-modal__box {
position: relative; z-index: 1;
display: flex; flex-direction: column;
width: min(100%, 640px); max-height: calc(100dvh - 40px);
padding: clamp(24px, 3vw, 38px);
overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--np2-r-l);
color: #fff;
background:
linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
linear-gradient(165deg, #1b1b23, #101016 60%, #0b0b10);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 30px 70px rgba(0, 0, 0, .6);
transform-origin: bottom center;
animation: np2-pop .62s cubic-bezier(.24, .9, .32, 1) both;
}
.npg-panel-root .np2-modal__box::before {
content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
background: linear-gradient(90deg, var(--np2-ac-alt) 0%, var(--np2-ac-alt) 50%, var(--np2-ac-1) 50%, var(--np2-ac-1) 100%);
}
.npg-panel-root .np2-modal.np2-closing { pointer-events: none; }
.npg-panel-root .np2-modal.np2-closing .np2-modal__box { animation: np2-suck .46s cubic-bezier(.55, 0, .78, .28) forwards; }
.npg-panel-root .np2-modal.np2-closing .np2-modal__scrim { animation: np2-scrim-out .46s ease forwards; }
.npg-panel-root .np2-modal__head {
display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
flex-shrink: 0; margin-bottom: clamp(16px, 2vw, 22px);
}
.npg-panel-root .np2-modal__title { margin: 0 0 5px; font-size: clamp(21px, 2vw, 29px); font-weight: 800; line-height: 1.2; color: #fff; }
.npg-panel-root .np2-modal__sub { margin: 0; font-size: 15px; font-weight: 600; color: #cbd1de; }
.npg-panel-root .np2-modal__x {
flex: none; display: flex; align-items: center; justify-content: center;
width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; cursor: pointer;
background: linear-gradient(160deg, var(--np2-ac-2), var(--np2-ac-1) 60%, var(--np2-ac-deep));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 12px rgba(0, 0, 0, .4);
transition: transform var(--np2-fast) var(--np2-ease), background var(--np2-fast) var(--np2-ease);
}
.npg-panel-root .np2-modal__x:hover {
transform: scale(1.07);
background: linear-gradient(160deg, var(--np2-ac-3), var(--np2-ac-2) 60%, var(--np2-ac-1));
}
.npg-panel-root .np2-modal__x:active { transform: scale(.96); }
.npg-panel-root .np2-modal__foot {
display: flex; align-items: center; justify-content: center;
flex-shrink: 0; margin-top: clamp(16px, 2vw, 22px);
}
.npg-panel-root .np2-modal__done {
display: inline-flex; align-items: center; justify-content: center;
min-height: 52px; padding: 0 52px; border: 0; border-radius: 999px; cursor: pointer;
font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: .06em;
text-transform: uppercase; text-align: center; text-decoration: none; color: #fff;
background: linear-gradient(160deg, var(--np2-ac-2), var(--np2-ac-1) 55%, var(--np2-ac-deep));
box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), 0 6px 16px rgba(0, 0, 0, .4);
transition: background var(--np2-fast) var(--np2-ease), transform var(--np2-fast) var(--np2-ease);
}
.npg-panel-root .np2-modal__done:hover {
transform: translateY(-2px);
background: linear-gradient(160deg, var(--np2-ac-3), var(--np2-ac-2) 55%, var(--np2-ac-1));
}
.npg-panel-root .np2-modal__done:active { transform: translateY(1px); }
.npg-panel-root :is(a, button, textarea):focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Panel de temas. */
.npg-panel-root .np2-themes {
display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
overflow-y: auto; padding: 6px 4px; margin: -6px -4px;
}
.npg-panel-root .np2-theme {
display: flex; align-items: center; gap: 12px;
padding: 16px 18px; border-radius: var(--np2-r-m);
background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .12);
color: #fff; font-family: inherit; text-align: left; cursor: pointer;
transition: background-color var(--np2-fast) var(--np2-ease), border-color var(--np2-fast) var(--np2-ease), transform var(--np2-fast) var(--np2-ease);
}
.npg-panel-root .np2-theme:hover { background: rgba(255, 255, 255, .10); transform: translateY(-2px); }
.npg-panel-root .np2-theme[aria-checked="true"] { border-color: rgba(255, 255, 255, .62); background: rgba(255, 255, 255, .13); }
.npg-panel-root .np2-theme__chip {
position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
display: flex; align-items: center; justify-content: center;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 4px 10px rgba(0, 0, 0, .35);
}
.npg-panel-root .np2-theme__chip img {
position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
transform: scale(.72); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
}
.npg-panel-root .np2-theme__chip::after {
content: ""; position: absolute; left: 12%; top: 7%; width: 66%; height: 28%; z-index: 2;
border-radius: 50%; transform: rotate(-18deg); pointer-events: none;
background: radial-gradient(circle at top, rgba(255, 255, 255, .55), transparent 72%);
}
.npg-panel-root .np2-theme__name { font-size: 15px; font-weight: 800; letter-spacing: .02em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
/* Panel de reportes. */
.npg-panel-root .np2-report__ask { margin: 0 0 16px; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: #cbd1de; }
.npg-panel-root .np2-hosts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.npg-panel-root .np2-host {
--np2-h: #8b93a1;
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
padding: 14px 6px; border-radius: var(--np2-r-m);
background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .12);
color: #fff; font-family: inherit; cursor: pointer;
transition: background-color var(--np2-fast) var(--np2-ease), border-color var(--np2-fast) var(--np2-ease), transform var(--np2-fast) var(--np2-ease);
}
.npg-panel-root .np2-host:hover { transform: translateY(-3px); border-color: var(--np2-h); background: rgba(255, 255, 255, .09); }
.npg-panel-root .np2-host:active { transform: translateY(0); }
.npg-panel-root .np2-host__icon {
position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
display: flex; align-items: center; justify-content: center;
background: var(--np2-h);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .30), 0 5px 12px rgba(0, 0, 0, .38);
}
.npg-panel-root .np2-host__icon img { width: 100%; height: 100%; object-fit: contain; transform: scale(.72); }
.npg-panel-root .np2-host__name {
max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
color: rgba(255, 255, 255, .72); line-height: 1.2; text-align: center;
}
.npg-panel-root .np2-host:hover .np2-host__name { color: #fff; }
.npg-panel-root .np2-host--torrent { --np2-h: #2fa14f; }
.npg-panel-root .np2-host--mediafire { --np2-h: #1f7ee0; }
.npg-panel-root .np2-host--gofile { --np2-h: #c8a27a; }
.npg-panel-root .np2-host--drive { --np2-h: #e3ba1f; }
/* Estado "Enviando…". */
.npg-panel-root .np2-loading {
display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 16px; padding: 34px 8px 26px; text-align: center;
}
.npg-panel-root .np2-dots { display: inline-flex; align-items: center; gap: 10px; height: 16px; }
.npg-panel-root .np2-dots i {
display: block; width: 12px; height: 12px; border-radius: 50%;
background: var(--np2-ac-2); animation: np2-dot 1s ease-in-out infinite;
}
.npg-panel-root .np2-dots i:nth-child(2) { animation-delay: .16s; }
.npg-panel-root .np2-dots i:nth-child(3) { animation-delay: .32s; }
.npg-panel-root .np2-loading__txt { margin: 0; font-size: 14.5px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .62); }
/* Confirmación del reporte. */
.npg-panel-root .np2-thanks { text-align: center; padding: 14px 8px 6px; animation: np2-thanks-in .38s var(--np2-ease) both; }
.npg-panel-root .np2-thanks__mark {
display: flex; align-items: center; justify-content: center;
width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; color: #fff;
background: linear-gradient(160deg, #3ee083, #2fd671 55%, #1a9c4e);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px rgba(47, 214, 113, .32);
}
.npg-panel-root .np2-thanks__title { margin: 0 0 6px; font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; line-height: 1.3; color: #fff; }
.npg-panel-root .np2-thanks__sub { max-width: 44ch; margin: 0 auto; font-size: 16px; font-weight: 600; line-height: 1.55; color: #e2e6ee; }
.npg-panel-root .np2-thanks__sub strong { color: inherit; font-weight: 800; }
.npg-panel-root .np2-thanks__sub .npg-report-server { font-weight: inherit; }
.npg-panel-root .np2-thanks__sub.npg-report-alternatives { color: #fff; font-weight: 500; }
/* Errores y aviso de reporte duplicado. */
.npg-panel-root .npg-report-error { margin: 0 0 16px; color: #ffb5bd; font-size: 15px; }
.npg-panel-root .npg-report-error--duplicate {
position: relative; display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; gap: 6px;
width: 100%; max-width: 480px; margin: 24px auto 0; padding: 22px clamp(16px, 3vw, 28px); overflow: hidden;
border: 1px solid rgba(255, 255, 255, .15); border-radius: 20px;
background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), #11131c;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 26px rgba(0, 0, 0, .22);
color: #fff; text-align: center;
animation: npg-report-notice-in .25s ease-out both;
}
.npg-panel-root .npg-report-error--duplicate::before {
content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 2px;
background: linear-gradient(90deg, transparent, var(--np2-ac-alt), var(--np2-ac-2), transparent);
}
.npg-panel-root .npg-report-error--duplicate:focus-visible { outline: 2px solid var(--np2-ac-alt); outline-offset: 3px; }
.npg-panel-root .npg-report-notice-icon {
display: inline-flex; align-items: center; justify-content: center; flex: none;
width: 42px; height: 42px; margin-bottom: 4px;
border: 0; border-radius: 0; color: #fff;
background: transparent;
box-shadow: none;
}
.npg-panel-root .npg-report-notice-icon img { display: block; flex: none; width: 32px; height: 32px; object-fit: contain; }
.npg-panel-root .npg-report-notice-title { display: block; color: #fff; font-size: 21px; font-weight: 800; line-height: 1.2; }
.npg-panel-root .npg-report-notice-copy {
display: block; width: max-content; max-width: 100%;
color: #d7deed; font-size: 15px; font-weight: 800; line-height: 1.55;
white-space: nowrap; overflow-wrap: normal; text-align: center;
}
/* Textos largos de los paneles. */
.npg-panel-root :is(.np2-modal__title, .np2-modal__sub, .np2-report__ask, .np2-thanks__title, .np2-thanks__sub, .np2-host__name, .npg-report-error) {
white-space: normal; overflow-wrap: break-word; min-width: 0;
}
/* Animaciones de los paneles. */
@keyframes np2-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes np2-scrim-out { to { opacity: 0; } }
@keyframes np2-pop {
0% { opacity: 0; transform: translateY(180px) scale(.32); }
55% { opacity: 1; transform: translateY(-16px) scale(1.04); }
76% { transform: translateY(6px) scale(.99); }
90% { transform: translateY(-3px) scale(1.005); }
100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes np2-suck {
0% { opacity: 1; transform: translateY(0) scale(1); }
26% { opacity: 1; transform: translateY(-14px) scale(1.03); }
100% { opacity: 0; transform: translateY(180px) scale(.32); }
}
@keyframes np2-dot {
0%, 72%, 100% { transform: translateY(0) scale(.82); opacity: .42; }
36% { transform: translateY(-9px) scale(1); opacity: 1; }
}
@keyframes np2-thanks-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes npg-report-notice-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
/* Responsive de los paneles. */
@media (max-width: 560px) {
.npg-panel-root .np2-modal { padding: 14px; }
.npg-panel-root .np2-modal__box { width: 100%; max-height: calc(100dvh - 28px); padding: 20px 18px 18px; border-radius: 22px; }
.npg-panel-root .np2-modal__head { margin-bottom: 16px; gap: 10px; }
.npg-panel-root .np2-modal__title { font-size: 20px; }
.npg-panel-root .np2-modal__sub { font-size: 13.5px; }
.npg-panel-root .np2-modal__x { width: 42px; height: 42px; }
.npg-panel-root .np2-themes { grid-template-columns: 1fr; gap: 10px; }
.npg-panel-root .np2-theme { padding: 12px 14px; gap: 12px; }
.npg-panel-root .np2-theme__chip { width: 52px; height: 52px; }
.npg-panel-root .np2-theme__name { font-size: 14.5px; }
.npg-panel-root .np2-modal__foot { margin-top: 16px; }
.npg-panel-root .np2-modal__done { width: 100%; padding: 0 24px; min-height: 54px; }
.npg-panel-root .np2-report__ask { font-size: 13.5px; margin-bottom: 14px; }
.npg-panel-root .np2-hosts { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.npg-panel-root .np2-host { padding: 12px 6px; }
.npg-panel-root .np2-host__icon { width: 48px; height: 48px; }
}
@media (max-width: 380px) {
.npg-panel-root .np2-modal { padding: 10px; }
.npg-panel-root .np2-modal__box { padding: 16px 14px 14px; max-height: calc(100dvh - 20px); }
.npg-panel-root .np2-modal__title { font-size: 18px; }
.npg-panel-root .np2-modal__sub { font-size: 13px; }
.npg-panel-root .np2-modal__x { width: 38px; height: 38px; }
.npg-panel-root .np2-theme { padding: 10px 12px; }
.npg-panel-root .np2-theme__chip { width: 46px; height: 46px; }
.npg-panel-root .np2-theme__name { font-size: 14px; }
.npg-panel-root .np2-host__icon { width: 44px; height: 44px; }
.npg-panel-root .np2-host__name { font-size: 11.5px; }
}
@media (max-height: 520px) {
.npg-panel-root .np2-modal__box { padding: 16px 18px; }
.npg-panel-root .np2-modal__head { margin-bottom: 12px; }
.npg-panel-root .np2-themes { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.npg-panel-root .np2-theme { padding: 9px 12px; gap: 10px; }
.npg-panel-root .np2-theme__chip { width: 40px; height: 40px; }
.npg-panel-root .np2-modal__foot { margin-top: 12px; }
.npg-panel-root .np2-modal__done { min-height: 46px; }
.npg-panel-root .np2-hosts { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.npg-panel-root .np2-host { padding: 9px 5px; gap: 7px; }
.npg-panel-root .np2-host__icon { width: 40px; height: 40px; }
.npg-panel-root .np2-report__ask { margin-bottom: 12px; }
}
/* =====================================================================
12. INTEGRACIÓN CON EL SITIO (Elementor, tema, cursor Wii)
===================================================================== */
/* Evita la separación automática con guiones del tema o de Elementor. */
.nproject-widget[data-npg-game], .nproject-widget[data-npg-game] *,
.npg-panel-root, .npg-panel-root * {
-webkit-hyphens: none !important;
-ms-hyphens: none !important;
hyphens: none !important;
word-break: normal !important;
}
/* Bloqueo del scroll de la página mientras hay un panel abierto. */
html.npg-scroll-lock, body.npg-scroll-lock { overflow: hidden !important; }
/* Compatibilidad con el cursor Wii que gestiona el sitio. */
html body.wii-mode-active .nproject-widget[data-npg-game],
html body.wii-mode-active .nproject-widget[data-npg-game] :is(*, #npg-cursor-guard),
html body.wii-mode-active .nproject-widget[data-npg-game] :is(*, #npg-cursor-guard)::before,
html body.wii-mode-active .nproject-widget[data-npg-game] :is(*, #npg-cursor-guard)::after,
body.wii-mode-active .npg-panel-root,
body.wii-mode-active .npg-panel-root * { cursor: none !important; }
/* =====================================================================
13. ACCESIBILIDAD: MOVIMIENTO REDUCIDO Y ALTO CONTRASTE
===================================================================== */
@media (prefers-reduced-motion: reduce) {
.nproject-widget[data-npg-game] *, .nproject-widget[data-npg-game] *::before, .nproject-widget[data-npg-game] *::after,
.npg-panel-root *, .npg-panel-root *::before, .npg-panel-root *::after { animation: none !important; transition: none !important; }
.nproject-widget[data-npg-game] .nproject-widget__video { display: none; }
.nproject-widget[data-npg-game] :is(.img-wrapper, .switch-user, .np-switch3d-btn):is(:hover, :active),
.npg-panel-root :is(.np2-theme, .np2-host):hover { transform: none; }
.nproject-widget[data-npg-game] .np2-av { opacity: 0 !important; transform: none !important; }
.nproject-widget[data-npg-game] .np2-av-1 { opacity: 1 !important; }
}
@media (forced-colors: active) {
.nproject-widget[data-npg-game] a:focus-visible { outline-color: Highlight; }
.nproject-widget[data-npg-game] :is(.np-switch3d-btn, .switch-user, .switch-battery-modern) { border: 1px solid ButtonText; }
}
#descargas.npg-download-anchor { scroll-margin-top: 110px; }