/* ═════════════════════════════════════════════════════════════════════════════════════
 * PowerAdmin · SKIN COMÚN «STEEL» (id `steel`) · skins temáticas v1 · lámina 01
 * ─────────────────────────────────────────────────────────────────────────────────────
 * Acero cepillado con cortes en diagonal, remaches y filo de energía rojo.
 * Fondo vivo, hábitat (clima), toque y ritual son Canvas: assets/js/core/skin-steel.js
 * (#pw-bg-steel z −1 · .pw-steel-hab · #pw-toque-steel · #pw-ritual-steel). Aquí viven las superficies.
 * Colores y geometría portados de referencias-visuales/skins/tematicas-v1/fuente/comun.py (.sk-steel).
 * Solo con el interruptor power_skins_raras_t1 (html[data-skins-t1]). Apagado, la app es idéntica a hoy.
 * Los keyframes no usan var() (Chrome no los compone). Nada anima filter ni mix-blend-mode.
 * ═════════════════════════════════════════════════════════════════════════════════════ */

html[data-skins-t1][data-power-accent="steel"] {
  --st-fondo: #0b0c0f;
  --st-acento: #ff2b2b;
  --st-acero-a: #2c3139;
  --st-acero-b: #121418;
  --st-borde: #59626d;
}
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] {
  background-color: var(--st-fondo) !important;
  background-image: linear-gradient(180deg, #2c3139 0%, #121418 100%) !important;
  background-attachment: fixed !important;
}
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud {
  background: transparent !important;
  background-image: none !important;
  color: #e9edf1;
}
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud::before,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud::after {
  background: none !important;
  background-image: none !important;
  animation: none !important;
  opacity: 0 !important;
}
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud #pa-ondas,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud #pa-particulas { display: none !important; }

#pw-bg-steel { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; z-index: -1; pointer-events: none; animation: stLienzoEntra 560ms cubic-bezier(0.16, 1, 0.3, 1) 1 both; }
.pw-steel-hab { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; z-index: 2; pointer-events: none; }
#pw-toque-steel { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; z-index: 2147483000; pointer-events: none; }
.pw-ritual-rara { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; z-index: 2147483001; pointer-events: auto; cursor: pointer; opacity: 1; transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1); }
.pw-ritual-rara.is-fin { opacity: 0; pointer-events: none; }
@keyframes stLienzoEntra { 0% { opacity: 0; } 100% { opacity: 1; } }

/* ── Superficies: acero cepillado con filo de energía rojo ── */
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud {
  --sk-vidrio: rgba(18,20,24,.92);
  --sk-tex:
    repeating-linear-gradient(180deg, rgba(255,255,255,.04) 0 1px, rgba(0, 0, 0, 0.06) 1px 2px, transparent 2px 3px),
    linear-gradient(104deg, transparent 0 22%, rgba(255,255,255,0.08) 30%, transparent 38%, transparent 62%, rgba(255,255,255,0.05) 70%, transparent 78%);
  --sk-tex-size: auto, auto;
  --sk-sheen: linear-gradient(115deg, transparent 34%, rgba(255,255,255,0.07) 44%, transparent 56%);
  --sk-borde: #59626d;
  --sk-bisel-hi: rgba(255,255,255,0.22);
  --sk-bisel-lo: rgba(0, 0, 0, 0.8);
  --sk-anillo: rgba(255,43,43,.55);
  --sk-halo: inset 1px 1px 0 rgba(255,255,255,0.2), inset -1px -1px 0 rgba(255,43,43,.55), 0 10px 24px -14px rgba(0, 0, 0, 0.95);
  --sk-radio: 4px;
  --sk-esquina: 0px;
  --sk-esquina-color: transparent;
  --st-sombra: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -2px 0 rgba(255,43,43,.55), inset 1px 0 0 rgba(255,43,43,.55), 0 10px 24px -14px rgba(0, 0, 0, 0.95);
}
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud :is(
  .power-card, .power-panel, .power-stat-card, .power-monitor, .pf-section, .pf-hero, .pw-game-card, .rpg-card, .alumno-card, .curso-card, .curso-stat-box, .curso-tech, .ag-battlepass, .pw-tcg-card, .as-glass, .as-radar-card, .feed-venta-row,
  :is(div, section, article, aside, form)[class*="rounded-2xl"]:is([class*="bg-zinc-9"], [class*="bg-[#0"], [class*="bg-black/"]),
  :is(div, section, article, aside, form)[class*="rounded-3xl"]:is([class*="bg-zinc-9"], [class*="bg-[#0"], [class*="bg-black/"]),
  .pw-overlay:not(.hidden) > :not(.pw-backdrop), [id$="-modal"]:not(.hidden) > :not(.absolute):not(.min-h-full):not(.pw-backdrop),
  .pw-panel, .pw-modal, .pw-modal-box, .pw-modal-content, .modal-card, .modal-container, dialog[open], .modal-vinculacion-box, .exito-sheet, .exito-card, .boveda-panel, .hud-mision-sheet, .mc-panel, .pp-modal-caja
) {
  border-radius: 4px !important;
  box-shadow: var(--st-sombra) !important;
}
/* Tarjetas y paneles principales: acero con cortes en diagonal (arriba-derecha y abajo-izquierda), remaches y filo */
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud :is(.pf-hero, .power-card, .power-panel, .pw-panel, .pf-section, .rpg-card, .alumno-card, .curso-card) {
  background: radial-gradient(circle 3.6px at 8px 47%, #ff9a8a 0, #d0161c 45%, #4a0406 80%, transparent 100%), radial-gradient(circle 3.6px at calc(100% - 14px) 47%, #ff9a8a 0, #d0161c 45%, #4a0406 80%, transparent 100%), radial-gradient(circle 3.6px at calc(100% - 14px) calc(100% - 14px), #ff9a8a 0, #d0161c 45%, #4a0406 80%, transparent 100%),
    linear-gradient(45deg, transparent calc(50% - 1px), #ff2b2b calc(50% - 1px), #ff2b2b calc(50% + 1px), transparent calc(50% + 1px)) right top / 20px 20px no-repeat, linear-gradient(45deg, transparent calc(50% - 1px), #ff2b2b calc(50% - 1px), #ff2b2b calc(50% + 1px), transparent calc(50% + 1px)) left bottom / 20px 20px no-repeat,
    linear-gradient(180deg, transparent, #ff2b2b 20%, #ff2b2b 80%, transparent) left 0 top 18% / 3px 64% no-repeat,
    linear-gradient(180deg, transparent, rgba(255,43,43,.28) 20%, rgba(255,43,43,.28) 80%, transparent) left 0 top 18% / 10px 64% no-repeat,
    repeating-linear-gradient(180deg, rgba(255,255,255,.04) 0 1px, rgba(0,0,0,.06) 1px 2px, transparent 2px 3px),
    linear-gradient(104deg, transparent 0 22%, rgba(255,255,255,.08) 30%, transparent 38%, transparent 62%, rgba(255,255,255,.05) 70%, transparent 78%),
    linear-gradient(180deg, #2c3139, #121418) !important;
  background-color: #121418 !important;
  border: 1px solid #59626d !important;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Controles: botón de acero con filo rojo abajo ── */
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .pf-section button,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .hud-slot {
  background:
    radial-gradient(70% 45% at 30% 12%, rgba(255,255,255,0.2), transparent 70%),
    linear-gradient(180deg, #3a4049, #121418) !important;
  border: 1px solid #59626d !important;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -2px 0 #ff2b2b, 0 0 10px rgba(255,43,43,.35);
  transition: transform 120ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 140ms cubic-bezier(0.16, 1, 0.3, 1);
}
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .hud-slot { border-radius: 0.9rem; }
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .pf-section button:hover,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .hud-slot:hover { filter: brightness(1.14) saturate(1.1); }
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .pf-section button:active,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .hud-slot:active { transform: scale(0.94); transition: transform 100ms cubic-bezier(0.34, 1.56, 0.64, 1); }
/* Chips y etiquetas: placa de acero con borde de filo */
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud :is(.pf12-chip, .pf-badge, [class*="chip"]):not(.hud-skin-chip) {
  border-color: #ff2b2b !important;
}

/* ── Nombre en metal ── */
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .pf-name, html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud #pf-nombre {
  background: linear-gradient(180deg,#fff 0%,#d3d9df 36%,#6d7782 50%,#e9edf1 66%,#98a2ac 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 #000) drop-shadow(0 0 6px rgba(255,43,43,.35));
}

/* ── Rótulos: halo para que se lean sobre el acero ── */
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud main.perfil-page > div:first-child p,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud main.perfil-page > div:first-child h1,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud #perfil-sub,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud main > h1,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud main > header h1 {
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255,43,43,.35);
}

/* ── Lo que la app ya ponía y esta skin REEMPLAZA con su propio lienzo (partículas premium, barridos de borde) ── */
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] .power-accent-fx,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] .power-accent-fx::before,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] .power-accent-fx::after { display: none !important; animation: none !important; }

/* esquinas, aura y barrido de skins comunes sobre la tarjeta: fuera (el acero ya trae sus cortes y su filo) */
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .pf-hero::before, html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .pf-hero::after,
html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .pf-hero-card-layout::before, html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .pf-hero-card-layout::after { content: none; animation: none; display: none; }
@media (prefers-reduced-motion: reduce) {
  #pw-bg-steel { animation: none; }
  html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .pf-section button, html:not(#st-a):not(#st-b):not(#st-c)[data-skins-t1][data-power-accent="steel"] body.power-hud .hud-slot { transition: none; }
}
