/* Party Challenge · Identidad nocturna compartida · v1
   Casa Lola es la referencia; cada evento conserva contenidos, permisos y reglas.
   Esta hoja se aplica sólo a las superficies que optan por data-pc-theme="night".
   No modifica los controles de negocio ni fuerza actividades a estar abiertas. */
body[data-pc-theme="night"]{
 --pc-night-bg:#0d0712;--pc-night-violet:#a55cff;--pc-night-pink:#ff3f91;
 --pc-night-gold:#ffd36a;--pc-night-line:rgba(244,219,255,.15);
 --pc-night-foreground:#fff8f2;--pc-night-muted:#d0bdd7;
 --bg:#0d0712;--bg2:#160b1d;--card:rgba(35,18,44,.8);
 --card2:rgba(52,27,63,.83);--line:rgba(244,219,255,.15);
 --text:#fff8f2;--muted:#d0bdd7;--gold:#ffd36a;--pink:#ff3f91;
 --shadow:0 18px 50px rgba(0,0,0,.32);
 position:relative;isolation:isolate;
 min-height:100vh;min-height:100dvh;
 background:
  radial-gradient(circle at 18% -10%,rgba(165,92,255,.23),transparent 35%),
  radial-gradient(circle at 91% 13%,rgba(255,63,145,.14),transparent 31%),
  radial-gradient(circle at 10% 95%,rgba(116,55,165,.13),transparent 42%),
  linear-gradient(180deg,#13091b 0%,#0d0712 47%,#0b0610 100%);
 background-attachment:fixed;
 color:var(--pc-night-foreground);
 -webkit-tap-highlight-color:transparent;
}
body[data-pc-theme="night"] .ambient{z-index:0;opacity:.23;filter:blur(82px);pointer-events:none}
body[data-pc-theme="night"] .ambient-a{background:#8f46ff;top:12vh;right:auto;left:-160px}
body[data-pc-theme="night"] .ambient-b{background:#ff407f;left:auto;right:-165px;bottom:10vh}
body[data-pc-theme="night"] :is(.shell,.wide-shell,.pc-account-shell,.pc-space-shell,.pc-duels-shell,.pc-family-layout){
 position:relative;z-index:1;
}
body[data-pc-theme="night"] :is(.card,.hero,.family-card,.pc-account-card,.pc-space-event,.duel-card){
 border-color:var(--pc-night-line);
 background:
  radial-gradient(circle at 100% 0%,rgba(165,92,255,.085),transparent 49%),
  linear-gradient(158deg,rgba(38,20,49,.93),rgba(19,11,27,.88));
 box-shadow:0 13px 40px rgba(0,0,0,.23),inset 0 1px rgba(255,255,255,.038);
 backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
}
body[data-pc-theme="night"] :is(.hero,.pc-space-dashboard-hero,.pc-account-hero){
 background:
  radial-gradient(circle at 92% 3%,rgba(255,148,77,.12),transparent 40%),
  radial-gradient(circle at 5% 107%,rgba(165,92,255,.24),transparent 45%),
  linear-gradient(145deg,rgba(43,21,55,.94),rgba(17,9,24,.93));
}
body[data-pc-theme="night"] :is(.btn,.pc-account-primary,.pc-edit-save){
 background:linear-gradient(135deg,#ff3f91,#d746ff);
 border-color:rgba(255,186,222,.26);
 box-shadow:0 9px 24px rgba(255,63,145,.17);
 color:white;
}
body[data-pc-theme="night"] :is(.btn-secondary,.pc-account-action):not(.pc-account-primary):not(.pc-edit-save){
 border-color:rgba(255,211,106,.2);
 background:rgba(255,211,106,.07);color:#ffe5ae;
}
body[data-pc-theme="night"] :is(.eyebrow,.pc-space-section-head .eyebrow){color:#ffdaa6}
body[data-pc-theme="night"] .muted{color:var(--pc-night-muted)}
body[data-pc-theme="night"] :is(.card,.hero) h2{letter-spacing:-.022em}
body[data-pc-theme="night"] :is(.input,input,select,textarea):focus-visible{
 outline:2px solid #ffa8d5;outline-offset:2px;
}
body[data-pc-theme="night"] :is(button,a,summary):focus-visible{
 outline:3px solid #ffd36a;outline-offset:3px;
}
body[data-pc-theme="night"] :is(.topbar,.pc-account-header){
 border-bottom-color:rgba(255,224,242,.12);
}
body[data-pc-theme="night"] :is(.challenge-icon,.family-profile-choice>span,.pc-space-head>span){
 background:linear-gradient(145deg,rgba(165,92,255,.17),rgba(255,63,145,.11));
}
body[data-pc-theme="night"] :is(.wall-post,.wall-round,.pc-space-event,.guide-category-card){
 border-color:rgba(237,212,251,.17);
}
body[data-pc-theme="night"] :is(.wall-reaction.selected,.option.selected,.avatar-choice.selected){
 border-color:#e8b6ff;
 background:rgba(165,92,255,.18);
}
body[data-pc-theme="night"] :is(.pc-profile-overview-identity,.pc-space-dashboard-hero){
 border-color:rgba(235,191,255,.22);
}

/* Eventos: navegar por funciones permanentes; Muro sigue dentro de Actividades,
   nunca ocupa el puesto central de una barra que puede quedar inactiva. */
body[data-pc-theme="night"][data-pc-app="player"] .bottom-nav,
body[data-pc-theme="night"][data-pc-app="family-player"] .pc-family-bottom-nav{
 grid-template-columns:repeat(4,minmax(0,1fr));
 width:min(calc(100% - 22px),540px);
 gap:5px;padding:7px;
 border:1px solid rgba(245,217,252,.19);
 border-radius:23px;
 background:rgba(19,10,28,.94);
 backdrop-filter:blur(23px);-webkit-backdrop-filter:blur(23px);
 box-shadow:0 20px 58px rgba(0,0,0,.4);
}
body[data-pc-theme="night"] .bottom-nav .nav{
 min-height:56px;display:grid;place-items:center;align-content:center;gap:2px;
 border-radius:17px;color:#baa7c5;
}
body[data-pc-theme="night"] .bottom-nav .nav span{font-size:20px;line-height:1.25}
body[data-pc-theme="night"] .bottom-nav .nav small{font-size:10px;line-height:1.1}
body[data-pc-theme="night"] .bottom-nav .nav.active{
 color:#fffaf5;background:linear-gradient(145deg,rgba(255,63,145,.18),rgba(165,92,255,.19));
 box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
}
/* Perfil del evento en la cabecera. La identidad individual sigue accesible
   desde el selector de jugador de Modo Familia. */
.pc-event-profile-shortcut{
 flex:0 0 42px;display:grid;place-items:center;
 width:42px;height:42px;min-height:42px;
 margin-left:auto;border:1px solid rgba(246,209,255,.24);
 border-radius:15px;color:#ffe1ff;text-decoration:none;
 background:linear-gradient(145deg,rgba(86,38,111,.68),rgba(36,20,50,.85));
 box-shadow:0 7px 19px rgba(92,37,123,.18);
 font-size:21px;font-weight:800;
}
.pc-event-profile-shortcut:active{transform:scale(.98)}
body[data-pc-theme="night"][data-pc-app="player"] #topbar{flex:1;min-width:0}
body[data-pc-theme="night"][data-pc-app="player"] #topbar .pc-topbar-event{
 width:100%;display:flex;align-items:center;gap:8px;
}
body[data-pc-theme="night"] .pc-event-identity{min-width:0;flex:1}
body[data-pc-theme="night"] .pc-event-identity b{overflow-wrap:anywhere}
body[data-pc-theme="night"] #familyTopbar .pc-event-profile-shortcut{margin-left:auto}
body[data-pc-theme="night"] #familyTopbar{gap:7px}
body[data-pc-theme="night"] #familyEventHeader{flex:1;min-width:0}
body[data-pc-theme="night"] #familyEventHeader .pc-event-identity{min-width:0}
body[data-pc-theme="night"] :is(.pc-player-header-row,#familyTopbar){align-items:center}
body[data-pc-theme="night"] :is(.pc-player-header-row,#familyTopbar) #pcBellHost{flex:none}

/* Actividades: botones de acceso al Muro más coherentes con el resto del juego. */
body[data-pc-theme="night"] :is(.pc-duels-access,.pc-family-duel-access,.pc-wall-social-tabs,.wall-active-player){
 border-color:rgba(235,190,255,.2);
 background:linear-gradient(145deg,rgba(79,42,100,.25),rgba(26,13,39,.33));
}
body[data-pc-theme="night"] .pc-wall-social-tab.active{
 background:linear-gradient(125deg,rgba(255,63,145,.16),rgba(165,92,255,.18));
}

/* Se adapta al panel de anfitrión sin alterar formularios, jerarquías ni el
   ciclo de vida de las actividades. */
body[data-pc-theme="night"][data-pc-app="admin"] :is(.pc-invite-intro,.pc-host-next-invite,.pc-overview,.pc-prepare-hub){
 border-color:rgba(245,210,255,.18);
}
@media(max-width:480px){
 body[data-pc-theme="night"] .pc-event-profile-shortcut{width:40px;height:40px;flex-basis:40px}
 body[data-pc-theme="night"] :is(.shell,.pc-family-layout){padding-left:14px;padding-right:14px}
 body[data-pc-theme="night"][data-pc-app="player"] #topbar .pc-change-event{font-size:.7rem}
 body[data-pc-theme="night"] .bottom-nav .nav small{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
 body[data-pc-theme="night"] :is(.pc-event-profile-shortcut,.bottom-nav .nav){transition:none}
}

/* El atributo hidden debe prevalecer sobre display:grid de accesos flotantes. */
body[data-pc-theme="night"] .pc-event-profile-shortcut[hidden]{display:none!important}
