/* TEMA «GRAFITO» (el del deck Sector 02): fondo carbón, tinta marfil, acero y arena para las dos series, ámbar para
 * destacar y coral para alertar. Un tema SÓLO pone variables y el fondo; las plantillas leen las variables, así que la
 * marca de una dependencia podrá cambiar los colores sin tocar una plantilla (spec.colores → motor/guion.js aplicaColores).
 * Variables: --fondo --panel --panel2 --linea --linea2 --tinta --tinta2 --humo --tenue --acento --alerta --ok
 *            --serie1 --serie2 · tipografías --f-t (títulos) --f-b (texto) --f-m (monoespaciada). */
#escenario.tema-grafito {
  --fondo: #0e1012; --panel: #15191d; --panel2: #1b2025; --linea: #262c32; --linea2: #353c44;
  --tinta: #ece9e3; --tinta2: #bdb9b1; --humo: #878b90; --tenue: #5a5f66;
  --serie1: #9db6c9; --serie2: #cfba90; --acento: #e5b453; --alerta: #e2775f; --ok: #97c3a5;
  --f-t: "Sora", system-ui, sans-serif; --f-b: "Public Sans", system-ui, sans-serif; --f-m: "IBM Plex Mono", ui-monospace, monospace;
  font-family: var(--f-b);
}
.tema-grafito #fondo {
  background: radial-gradient(1500px 950px at 88% -12%, color-mix(in srgb, var(--serie1) 8.5%, transparent), transparent 62%),
              radial-gradient(1200px 820px at -12% 112%, color-mix(in srgb, var(--serie2) 6.5%, transparent), transparent 62%), var(--fondo);
}
.tema-grafito #fondo .puntos {
  position: absolute; inset: -40px; background-image: radial-gradient(circle at 1.5px 1.5px, color-mix(in srgb, var(--tinta) 7.5%, transparent) 1.3px, transparent 1.8px);
  background-size: 40px 40px; animation: gr-deriva 60s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%);
}
@keyframes gr-deriva { to { transform: translate(40px, 40px); } }
.tema-grafito #fondo .barrido {
  position: absolute; width: 2600px; height: 2600px; left: 50%; top: 50%; margin: -1300px 0 0 -1300px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 292deg, color-mix(in srgb, var(--acento) 3.5%, transparent) 322deg, color-mix(in srgb, var(--acento) 12%, transparent) 359deg, transparent 360deg);
  animation: gr-barre 9s linear infinite; opacity: 0; transition: opacity 1.4s ease;
}
.tema-grafito.con-barrido #fondo .barrido { opacity: 1; }
@keyframes gr-barre { to { transform: rotate(360deg); } }
